public function testRouteMatchObjectRemainsSameFollowingForwardDispatch() { $routeMatch = $this->controller->getEvent()->getRouteMatch(); $matchParams = $routeMatch->getParams(); $matchMatchedRouteName = $routeMatch->getMatchedRouteName(); $result = $this->plugin->dispatch('forward', array('action' => 'test-matches', 'param1' => 'foobar')); $testMatch = $this->controller->getEvent()->getRouteMatch(); $testParams = $testMatch->getParams(); $testMatchedRouteName = $testMatch->getMatchedRouteName(); $this->assertSame($routeMatch, $testMatch); $this->assertEquals($matchParams, $testParams); $this->assertEquals($matchMatchedRouteName, $testMatchedRouteName); }