Ejemplo n.º 1
0
 /**
  * This tests that when auto-connect is false,
  * the connect method is not called on the current
  * connection until manually called.
  */
 public function testAdldapConstructNoAutoConnect()
 {
     $connection = $this->newConnectionMock();
     $differentConnection = $this->newConnectionMock();
     $ad = new Adldap([], $connection, false);
     $differentConnection->shouldReceive('close')->once()->andReturn(true);
     $ad->setLdapConnection($differentConnection);
 }