public function testPlus() { $lParent = new LParent(); $lChild = new LChild(); for ($i = 0; $i < 10; $i++) { $randomNumber = rand(0, 5); $this->assertEquals($lChild->plus($i, $randomNumber), $lParent->plus($i, $randomNumber)); } }
private function checkSecondSubstitution() { $lParent = new LParent(); $lChild = new LChild(); $this->assertEquals($lParent->plus(5, 2), $lChild->plus(5, 2)); }