public function getConfiguration() { return $this->config; }
public function testLog() { $conn = new Connection(); $called = false; $conn->getConfiguration()->setLoggerCallable(function ($msg) use(&$called) { $called = $msg; }); $conn->log(array('test')); $this->assertEquals(array('test'), $called); }