@@ -396,7 +396,7 @@ public function testMissingTrailingSlash()
396
396
397
397
public function testExtraTrailingSlash ()
398
398
{
399
- $ this ->getExpectedException () ?: $ this -> expectException (ResourceNotFoundException::class);
399
+ $ this ->expectException (ResourceNotFoundException::class);
400
400
$ coll = new RouteCollection ();
401
401
$ coll ->add ('foo ' , new Route ('/foo ' ));
402
402
@@ -406,7 +406,7 @@ public function testExtraTrailingSlash()
406
406
407
407
public function testMissingTrailingSlashForNonSafeMethod ()
408
408
{
409
- $ this ->getExpectedException () ?: $ this -> expectException (ResourceNotFoundException::class);
409
+ $ this ->expectException (ResourceNotFoundException::class);
410
410
$ coll = new RouteCollection ();
411
411
$ coll ->add ('foo ' , new Route ('/foo/ ' ));
412
412
@@ -418,7 +418,7 @@ public function testMissingTrailingSlashForNonSafeMethod()
418
418
419
419
public function testExtraTrailingSlashForNonSafeMethod ()
420
420
{
421
- $ this ->getExpectedException () ?: $ this -> expectException (ResourceNotFoundException::class);
421
+ $ this ->expectException (ResourceNotFoundException::class);
422
422
$ coll = new RouteCollection ();
423
423
$ coll ->add ('foo ' , new Route ('/foo ' ));
424
424
@@ -430,7 +430,7 @@ public function testExtraTrailingSlashForNonSafeMethod()
430
430
431
431
public function testSchemeRequirement ()
432
432
{
433
- $ this ->getExpectedException () ?: $ this -> expectException (ResourceNotFoundException::class);
433
+ $ this ->expectException (ResourceNotFoundException::class);
434
434
$ coll = new RouteCollection ();
435
435
$ coll ->add ('foo ' , new Route ('/foo ' , [], [], [], '' , ['https ' ]));
436
436
$ matcher = $ this ->getUrlMatcher ($ coll );
@@ -439,7 +439,7 @@ public function testSchemeRequirement()
439
439
440
440
public function testSchemeRequirementForNonSafeMethod ()
441
441
{
442
- $ this ->getExpectedException () ?: $ this -> expectException (ResourceNotFoundException::class);
442
+ $ this ->expectException (ResourceNotFoundException::class);
443
443
$ coll = new RouteCollection ();
444
444
$ coll ->add ('foo ' , new Route ('/foo ' , [], [], [], '' , ['https ' ]));
445
445
0 commit comments