1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
From: "Alexander M. Turek" <me@derrabus.de>
Date: Mon, 23 Sep 2024 12:42:15 +0200
Subject: Remove calls to getExpectedException()
Origin: upstream, https://github.^Cm/symfony/symfony/commit/c1b6da6947b14422320ee5128a643ae26e6cc916
---
src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php b/src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php
index 9d16013..5a5c96d 100644
--- a/src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php
+++ b/src/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php
@@ -388,7 +388,7 @@ class UrlMatcherTest extends TestCase
public function testExtraTrailingSlash()
{
- $this->getExpectedException() ?: $this->expectException(ResourceNotFoundException::class);
+ $this->expectException(ResourceNotFoundException::class);
$coll = new RouteCollection();
$coll->add('foo', new Route('/foo'));
@@ -398,7 +398,7 @@ class UrlMatcherTest extends TestCase
public function testMissingTrailingSlashForNonSafeMethod()
{
- $this->getExpectedException() ?: $this->expectException(ResourceNotFoundException::class);
+ $this->expectException(ResourceNotFoundException::class);
$coll = new RouteCollection();
$coll->add('foo', new Route('/foo/'));
@@ -410,7 +410,7 @@ class UrlMatcherTest extends TestCase
public function testExtraTrailingSlashForNonSafeMethod()
{
- $this->getExpectedException() ?: $this->expectException(ResourceNotFoundException::class);
+ $this->expectException(ResourceNotFoundException::class);
$coll = new RouteCollection();
$coll->add('foo', new Route('/foo'));
@@ -422,7 +422,7 @@ class UrlMatcherTest extends TestCase
public function testSchemeRequirement()
{
- $this->getExpectedException() ?: $this->expectException(ResourceNotFoundException::class);
+ $this->expectException(ResourceNotFoundException::class);
$coll = new RouteCollection();
$coll->add('foo', new Route('/foo', [], [], [], '', ['https']));
$matcher = $this->getUrlMatcher($coll);
@@ -431,7 +431,7 @@ class UrlMatcherTest extends TestCase
public function testSchemeRequirementForNonSafeMethod()
{
- $this->getExpectedException() ?: $this->expectException(ResourceNotFoundException::class);
+ $this->expectException(ResourceNotFoundException::class);
$coll = new RouteCollection();
$coll->add('foo', new Route('/foo', [], [], [], '', ['https']));
|