lithium\tests\cases\analysis\logger\adapter\FileTest::testWithoutTimestamp PHP Метод

testWithoutTimestamp() публичный Метод

    public function testWithoutTimestamp()
    {
        $this->subject = new File(array('path' => $this->path, 'timestamp' => false, 'format' => "{:message}\n"));
        $priority = 'debug';
        $message = 'This is a debug message';
        $function = $this->subject->write($priority, $message);
        $now = date('Y-m-d H:i:s');
        $function('lithium\\analysis\\Logger', compact('priority', 'message'), new Filters());
        $log = file_get_contents("{$this->path}/debug.log");
        $this->assertEqual("This is a debug message\n", $log);
    }