Skip to content

Commit 92d7476

Browse files
Merge branch '2.8' into 3.2
* 2.8: Refactored other PHPUnit method calls to work with namespaced PHPUnit 6 Further refactorings to PHPUnit namespaces resolve parameters in definition classes
2 parents 1254922 + 5fc4b5c commit 92d7476

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/FinderTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,10 @@ public function testAccessDeniedException()
634634
$this->fail(sprintf("Expected exception:\n%s\nGot:\n%s\nWith comparison failure:\n%s", $expectedExceptionClass, 'PHPUnit_Framework_ExpectationFailedException', $e->getComparisonFailure()->getExpectedAsString()));
635635
}
636636

637+
if ($e instanceof \PHPUnit\Framework\ExpectationFailedException) {
638+
$this->fail(sprintf("Expected exception:\n%s\nGot:\n%s\nWith comparison failure:\n%s", $expectedExceptionClass, '\PHPUnit\Framework\ExpectationFailedException', $e->getComparisonFailure()->getExpectedAsString()));
639+
}
640+
637641
$this->assertInstanceOf($expectedExceptionClass, $e);
638642
}
639643
}

0 commit comments

Comments
 (0)