public function testGetPrevious() { if (version_compare(PHP_VERSION, '5.3.0') < 0) { $this->markTestSkipped(); } $e1 = new FooException('real cause'); $e = new PropelException('this is an error', $e1); $this->assertEquals($e1, $e->getPrevious()); }
public function testGetPrevious() { $e1 = new FooException('real cause'); $e = new PropelException('this is an error', 0, $e1); $this->assertEquals($e1, $e->getPrevious()); }