/** * @Then /^Possible transitions should be$/ */ public function possibleTransitionsShouldBe(TableNode $table) { $states = $table->getRow(0); $transitions = $this->fsm->getTransitions(); foreach ($states as $state) { if (!in_array($state, $transitions)) { throw new \Exception("{$state} was not in the possible transitions list."); } } }