Skip to content

Commit d1b3f08

Browse files
committed
Remove calls to getExpectedException()
1 parent df460a3 commit d1b3f08

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Tests/Matcher/UrlMatcherTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ public function testMissingTrailingSlash()
396396

397397
public function testExtraTrailingSlash()
398398
{
399-
$this->getExpectedException() ?: $this->expectException(ResourceNotFoundException::class);
399+
$this->expectException(ResourceNotFoundException::class);
400400
$coll = new RouteCollection();
401401
$coll->add('foo', new Route('/foo'));
402402

@@ -406,7 +406,7 @@ public function testExtraTrailingSlash()
406406

407407
public function testMissingTrailingSlashForNonSafeMethod()
408408
{
409-
$this->getExpectedException() ?: $this->expectException(ResourceNotFoundException::class);
409+
$this->expectException(ResourceNotFoundException::class);
410410
$coll = new RouteCollection();
411411
$coll->add('foo', new Route('/foo/'));
412412

@@ -418,7 +418,7 @@ public function testMissingTrailingSlashForNonSafeMethod()
418418

419419
public function testExtraTrailingSlashForNonSafeMethod()
420420
{
421-
$this->getExpectedException() ?: $this->expectException(ResourceNotFoundException::class);
421+
$this->expectException(ResourceNotFoundException::class);
422422
$coll = new RouteCollection();
423423
$coll->add('foo', new Route('/foo'));
424424

@@ -430,7 +430,7 @@ public function testExtraTrailingSlashForNonSafeMethod()
430430

431431
public function testSchemeRequirement()
432432
{
433-
$this->getExpectedException() ?: $this->expectException(ResourceNotFoundException::class);
433+
$this->expectException(ResourceNotFoundException::class);
434434
$coll = new RouteCollection();
435435
$coll->add('foo', new Route('/foo', [], [], [], '', ['https']));
436436
$matcher = $this->getUrlMatcher($coll);
@@ -439,7 +439,7 @@ public function testSchemeRequirement()
439439

440440
public function testSchemeRequirementForNonSafeMethod()
441441
{
442-
$this->getExpectedException() ?: $this->expectException(ResourceNotFoundException::class);
442+
$this->expectException(ResourceNotFoundException::class);
443443
$coll = new RouteCollection();
444444
$coll->add('foo', new Route('/foo', [], [], [], '', ['https']));
445445

0 commit comments

Comments
 (0)