Exemple #1
0
 /**
  * Test if the php behavior on protected method in parent class
  * is keeped with an extending stated class (can call).
  */
 public function testDaughterCanCallMotherProtected()
 {
     $daughterInstance = new Daughter();
     $daughterInstance->enableState('StateTwo')->enableState('StateThree');
     $this->assertEquals(3 * 456, $daughterInstance->methodRecallMotherProtected());
 }