false, true, false, true, 307,
[]],
[false, true, true,
['additional-parameter'
], 307,
[]],
];
} public function testEmptyPath() { $request =
new Request();
$controller =
new RedirectController();
try { $controller->
urlRedirectAction($request, '', true
);
$this->
fail('Expected Symfony\Component\HttpKernel\Exception\HttpException to be thrown'
);
} catch (HttpException
$e) { $this->
assertSame(410,
$e->
getStatusCode());
} try { $controller->
urlRedirectAction($request, '', false
);
$this->
fail('Expected Symfony\Component\HttpKernel\Exception\HttpException to be thrown'
);
} catch (HttpException
$e) { $this->
assertSame(404,
$e->
getStatusCode());
}