public function testDivide() { $lParent = new LParent(); $lChild = new LChild(); $this->assertEquals($lParent->divide(5, 2), $lChild->divide(5, 2)); try { $lChild->divide(5, 0); } catch (Exception $e) { $this->assertInstanceOf('RuntimeException', $e); } }
private function checkSecondSubstitution() { $lParent = new LParent(); $lChild = new LChild(); $this->assertEquals($lParent->plus(5, 2), $lChild->plus(5, 2)); }