Neos\Flow\Tests\Unit\Mvc\Routing\RouteTest::settingInvalidRoutePartHandlerThrowsException PHP Méthode

settingInvalidRoutePartHandlerThrowsException() public méthode

    public function settingInvalidRoutePartHandlerThrowsException()
    {
        $this->route->setUriPattern('{key1}/{key2}');
        $this->route->setRoutePartsConfiguration(['key1' => ['handler' => Routing\StaticRoutePart::class]]);
        $mockRoutePartHandler = $this->createMock(Routing\StaticRoutePart::class);
        $this->mockObjectManager->expects($this->once())->method('get')->with(Routing\StaticRoutePart::class)->will($this->returnValue($mockRoutePartHandler));
        $this->route->parse();
    }
RouteTest