コード例 #1
0
ファイル: NeevoExceptionTest.php プロジェクト: smasty/neevo
 public function testConstructor()
 {
     $e = new NeevoException($m = 'error', $c = 0, $s = 'SELECT * FROM error', $p = new Exception());
     $this->assertEquals($m, $e->getMessage());
     $this->assertEquals($c, $e->getCode());
     $this->assertEquals($p, $e->getPrevious());
     $this->assertEquals($s, $e->getSql());
 }