예제 #1
0
 public function testGetIsCurrentWhenCurrentUriIsSet()
 {
     $this->addChildWithExternalUrl();
     $this->menu->setCurrentUri('http://www.symfony-reloaded.org');
     $this->assertTrue($this->menu['child']->isCurrent());
     $this->assertFalse($this->pt1->isCurrent());
 }