コード例 #1
0
 protected function tearDown()
 {
     $this->deleteAppLogFile();
     $path = Config::getAppRootPath() . '/log/tmp/app.log';
     if (file_exists($path)) {
         unlink($path);
         rmdir(dirname($path));
     }
     parent::tearDown();
 }
コード例 #2
0
 protected function setUp()
 {
     parent::setUp();
     $this->loggerEngine = $this->getMockBuilder('Hyperframework\\Logging\\LoggerEngine')->setMethods(['handleLogRecord'])->getMock();
 }