Knp\Bundle\MenuBundle\Tests\Templating\MenuHelperTest::testGet PHP Method

testGet() public method

public testGet ( )
    public function testGet()
    {
        $helperMock = $this->getHelperMock();
        $helperMock->expects($this->any())->method('get')->with($this->equalTo('test'), $this->equalTo(array('pathArray')))->will($this->returnValue('returned value'));
        $helper = new MenuHelper($helperMock, $this->getMatcherMock(), $this->getManipulatorMock());
        $this->assertEquals('returned value', $helper->get('test', array('pathArray')));
    }