public function testGetCurrentRouteResult() { $this->routeAssemblerProphezy->getCurrentRouteResult()->willReturn(RouteResult::fromRouteMatch('home', 'HelloWorld', [])); $result = $this->extension->getCurrentRouteResult(); $this->assertInstanceOf(RouteResult::class, $result); }