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

testRender() public method

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