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

createOfLogFile() protected method

Runs the test for the creation of a file with logging
Since: 2014-09-13
Author: Nikos Dimopoulos ([email protected])
protected createOfLogFile ( string $function )
$function string
    protected function createOfLogFile($function)
    {
        $I = $this->tester;
        $fileName = $I->getNewFileName('log', 'log');
        $logger = new File($this->logPath . $fileName);
        $logger->{$function}('Hello');
        $logger->close();
        $I->amInPath($this->logPath);
        $I->seeFileFound($fileName);
        $I->deleteFile($fileName);
    }
FileTest