count() public method

Gets the current amount of breadcrumbs
public count ( ) : integer
return integer
コード例 #1
0
 /**
  * Tests whether `Breadcrumbs::count()` works correctly.
  *
  * @dataProvider crumbsProvider
  */
 public function testCountBreadcrumbs($crumbs)
 {
     $b = new Breadcrumbs($crumbs);
     $this->assertEquals(count($crumbs), $b->count());
 }
コード例 #2
0
 /**
  * Tests whether `Breadcrumbs::count()` works correctly.
  *
  * @dataProvider crumbsProvider
  */
 public function testCountBreadcrumbs($crumbs)
 {
     $b = new Breadcrumbs($crumbs);
     Assert::equals(count($crumbs), $b->count());
 }