getConfiguration() публичный Метод

Get the Configuration used by this Connection.
public getConfiguration ( ) : Doctrine\MongoDB\Configuration
Результат Doctrine\MongoDB\Configuration
Пример #1
0
 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);
 }
Пример #2
0
 public function testLogShouldDoNothingWithoutLoggerCallable()
 {
     $conn = new Connection();
     $conn->log(array('test'));
     $this->assertNull($conn->getConfiguration()->getLoggerCallable());
 }