Beispiel #1
0
 public function testConstructionWithPearErrorYieldsCodeFromPearError()
 {
     require_once __DIR__ . '/Stub/PearError.php';
     $p = new Horde_Exception_Stub_PearError('pear', 666);
     $e = new Horde_Exception_Wrapped($p);
     $this->assertSame(666, $e->getCode());
 }