Phalcon\Test\Unit\Logger\Adapter\FileTest::testLoggerAdapterFileCreationDefault PHP Method

testLoggerAdapterFileCreationDefault() public method

Tests the creation of the log file
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])
    public function testLoggerAdapterFileCreationDefault()
    {
        $this->specify("logging in a file does not create the file", function () {
            $I = $this->tester;
            $fileName = $I->getNewFileName('log', 'log');
            $logger = new File($this->logPath . $fileName);
            $logger->log('Hello');
            $logger->close();
            $I->amInPath($this->logPath);
            $I->seeFileFound($fileName);
            $I->deleteFile($fileName);
        });
    }
FileTest