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([]);
}