Neos\Flow\Tests\Unit\Mvc\Routing\RouteTest::resolvesThrowsExceptionIfRoutePartValueIsNoString PHP Метод

resolvesThrowsExceptionIfRoutePartValueIsNoString() публичный Метод

    public function resolvesThrowsExceptionIfRoutePartValueIsNoString()
    {
        $mockRoutePart = $this->createMock(Routing\RoutePartInterface::class);
        $mockRoutePart->expects($this->any())->method('resolve')->will($this->returnValue(true));
        $mockRoutePart->expects($this->any())->method('hasValue')->will($this->returnValue(true));
        $mockRoutePart->expects($this->once())->method('getValue')->will($this->returnValue(['not a' => 'string']));
        $this->route->setUriPattern('foo');
        $this->route->_set('isParsed', true);
        $this->route->_set('routeParts', [$mockRoutePart]);
        $this->route->resolves([]);
    }
RouteTest