Exemplo n.º 1
0
 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));
     }
 }
Exemplo n.º 2
0
 private function checkSecondSubstitution()
 {
     $lParent = new LParent();
     $lChild = new LChild();
     $this->assertEquals($lParent->plus(5, 2), $lChild->plus(5, 2));
 }