/**
* Tests the build method with two path elements.
*
* @covers ::build
* @covers ::getRequestForPath
*/
public function testBuildWithTwoPathElements() { $this->context->
expects($this->
once()) ->
method('getPathInfo'
) ->
willReturn('/example/baz'
);
$this->
setupStubPathProcessor();
$route_1 =
new Route('/example'
);
$this->requestMatcher->
expects($this->
exactly(1
)) ->
method('matchRequest'
) ->
willReturnCallback(function DRequest
$request) use ($route_1) { if ($request->
getPathInfo() == '/example'
) { return [ RouteObjectInterface::ROUTE_NAME => 'example',
RouteObjectInterface::ROUTE_OBJECT =>
$route_1,
'_raw_variables' =>
new InputBag([]),
];