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); }
public function testLogShouldDoNothingWithoutLoggerCallable() { $conn = new Connection(); $conn->log(array('test')); $this->assertNull($conn->getConfiguration()->getLoggerCallable()); }