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