public function getLeaves(TaxonInterface $parentTaxon = null);
/** * @Then they should have order like :firstTaxonName, :secondTaxonName, :thirdTaxonName and :fourthTaxonName */ public function theyShouldHaveOrderLikeAnd(...$taxonsNames) { $leaves = $this->createPage->getLeaves(); foreach ($leaves as $key => $leaf) { Assert::contains($taxonsNames[$key], $leaf->getText()); } }