log('test', \LOG_NOTICE, 'localhost'); $this->assertEquals(array(array('message' => 'test', 'priority' => \LOG_NOTICE, 'extras' => 'localhost')), $adapter->getLogs()); } public function testClearLog() { $adapter = new ArrayLogAdapter(); $adapter->log('test', \LOG_NOTICE, 'localhost'); $adapter->clearLogs(); $this->assertEquals(array(), $adapter->getLogs()); } }