Skip to content

Commit 53c529c

Browse files
committed
Fix tests
1 parent 7b647c6 commit 53c529c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Matcher/UrlMatcherTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ public function testDefaultRequirementOfVariableDisallowsNextSeparator()
339339

340340
public function testSchemeRequirement()
341341
{
342-
$this->expectException('Symfony\Component\Routing\Exception\ResourceNotFoundException');
342+
$this->getExpectedException() ?: $this->expectException('Symfony\Component\Routing\Exception\ResourceNotFoundException');
343343
$coll = new RouteCollection();
344344
$coll->add('foo', new Route('/foo', [], [], [], '', ['https']));
345345
$matcher = $this->getUrlMatcher($coll);

0 commit comments

Comments
 (0)