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