public function testClearLog()
 {
     $adapter = new ArrayLogAdapter();
     $adapter->log('test', \LOG_NOTICE, 'localhost');
     $adapter->clearLogs();
     $this->assertEquals(array(), $adapter->getLogs());
 }
 protected function tearDown()
 {
     if ($this->logger) {
         $logPath = sprintf('./log/%s-api-%s.log', $this->getClientName(), date('Ymd'));
         foreach ($this->logger->getLogs() as $log) {
             file_put_contents($logPath, $log['message'] . "\n", FILE_APPEND);
         }
     }
     parent::tearDown();
 }