From 9d5f7cc8d189c0aba67fe0bdedeb42b4f33dfd8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katarina=20Mio=C4=8Di=C4=87?= Date: Mon, 22 Apr 2024 15:17:37 +0200 Subject: [PATCH] NGSTACK-843 throw RuntimeException if RouterStub methods are used --- .../Integration/Implementation/Stubs/RouterStub.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/lib/Integration/Implementation/Stubs/RouterStub.php b/tests/lib/Integration/Implementation/Stubs/RouterStub.php index ad8bdb9b..709c070c 100644 --- a/tests/lib/Integration/Implementation/Stubs/RouterStub.php +++ b/tests/lib/Integration/Implementation/Stubs/RouterStub.php @@ -6,31 +6,33 @@ use Symfony\Component\Routing\RequestContext; use Symfony\Component\Routing\RouterInterface; +use RuntimeException; + class RouterStub implements RouterInterface { public function setContext(RequestContext $context) { - // TODO: Implement setContext() method. + throw new RuntimeException("Not implemented"); } public function getContext() { - // TODO: Implement getContext() method. + throw new RuntimeException("Not implemented"); } public function getRouteCollection() { - // TODO: Implement getRouteCollection() method. + throw new RuntimeException("Not implemented"); } public function generate(string $name, array $parameters = [], int $referenceType = self::ABSOLUTE_PATH) { - // TODO: Implement generate() method. + throw new RuntimeException("Not implemented"); } public function match(string $pathinfo) { - // TODO: Implement match() method. + throw new RuntimeException("Not implemented"); } } \ No newline at end of file