public function testIsCurrent()
{
$current = $this->getMock('Knp\\Menu\\ItemInterface');
$notCurrent = $this->getMock('Knp\\Menu\\ItemInterface');
$matcherMock = $this->getMatcherMock();
$matcherMock->expects($this->any())->method('isCurrent')->withConsecutive(array($current), array($notCurrent))->will($this->onConsecutiveCalls(true, false));
$helper = new MenuHelper($this->getHelperMock(), $matcherMock, $this->getManipulatorMock());
$this->assertTrue($helper->isCurrent($current));
$this->assertFalse($helper->isCurrent($notCurrent));
}