public function testPrefersRouteMatchController() { $this->assertFalse($this->listener->isPreferRouteMatchController()); $this->listener->setPreferRouteMatchController(true); $this->routeMatch->setParam('controller', 'Some\\Other\\Service\\Namespace\\Controller\\Sample'); $myController = new SampleController(); $this->event->setTarget($myController); $this->listener->injectActionHandles($this->event); $this->assertEquals(['default', 'some', 'some/sample'], $this->updater->getHandles()); }