Symfony\Cmf\Bundle\RoutingBundle\Tests\Unit\Routing\DynamicRouterTest::testMatch PHP Method

testMatch() public method

public testMatch ( )
    public function testMatch()
    {
        $this->eventDispatcher->expects($this->once())->method('dispatch')->with(Events::PRE_DYNAMIC_MATCH, $this->equalTo(new RouterMatchEvent()));
        $parameters = $this->router->match('/foo');
        $this->assertEquals(array('foo' => 'bar'), $parameters);
        $this->assertRequestAttributes($this->request);
    }