Creitive\Breadcrumbs\BreadcrumbsTest::testOutput PHP Method

testOutput() public method

Doesn't check the actual items, just that the expected number of items is present.
public testOutput ( $crumbs, $classes )
    public function testOutput($crumbs, $classes)
    {
        $b = new Breadcrumbs($crumbs, $classes);
        $crawler = new Crawler($b->render());
        /**
         * There should only be one `ul` element.
         */
        $this->assertCount(1, $crawler->filter('ul'));
        /**
         * There should be as many `li` elements as there are breadcrumbs in the
         * original data.
         */
        $this->assertCount(count($crumbs), $crawler->filter('li'));
        /**
         * There should be one `span.divider` less than there are breadcrumbs.
         */
        $this->assertCount(count($crumbs) - 1, $crawler->filter('span.divider'));
    }