Beispiel #1
0
 public function testException()
 {
     $e = new LDAP\Exception(null, '', 0);
     $this->assertEquals('no exception message', $e->getMessage());
     $this->assertEquals(0, $e->getCode());
     $this->assertEquals(0, $e->getErrorCode());
     $e = new LDAP\Exception(null, '', 15);
     $this->assertEquals('0xf: no exception message', $e->getMessage());
     $this->assertEquals(15, $e->getCode());
     $this->assertEquals(15, $e->getErrorCode());
 }