/** * Check if the list of states for the daughter contains only its states and states of its mother. * States overloaded must not be duplicated. */ public function testListAvailablesStatesDaughter() { $daughterInstance = new Daughter(); $statesList = $daughterInstance->listAvailableStates(); sort($statesList); $this->assertEquals(['StateDefault', 'StateOne', 'StateThree', 'StateTwo'], $statesList); }