Пример #1
0
 public function testRemovingAllPages()
 {
     $nav = new Navigation\Navigation();
     $nav->addPages(array(array('label' => 'Page 1', 'uri' => '#'), array('label' => 'Page 2', 'uri' => '#')));
     $nav->removePages();
     $this->assertEquals(0, count($nav), 'Expected 0 pages, found ' . count($nav));
 }