public function getLeafNameFromPosition($position, TaxonInterface $parentTaxon = null);
/** * @Then the first taxon on the list should be :taxon */ public function theFirstTaxonOnTheListShouldBe(TaxonInterface $taxon) { $this->createPage->open(); Assert::same($this->createPage->getLeafNameFromPosition(0), $taxon->getName(), sprintf('Expected %s as a first taxon, but got %s.', $taxon->getName(), $this->createPage->getLeafNameFromPosition(0))); }