8000 minor #58178 [HttpFoundation] let test fail if an expected exception … · symfony/symfony@5f3fdc2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5f3fdc2

Browse files
committed
minor #58178 [HttpFoundation] let test fail if an expected exception is not thrown (xabbuh)
This PR was merged into the 7.1 branch. Discussion ---------- [HttpFoundation] let test fail if an expected exception is not thrown | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | see #58177 (comment) | License | MIT Commits ------- 0d52e74 let test fail if an expected exception is not thrown
2 parents 47b8cd6 + 0d52e74 commit 5f3fdc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/HttpFoundation/Tests/Test/Constraint/ResponseStatusCodeSameTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,7 @@ public function testReducedVerbosity()
5454

5555
return;
5656
}
57+
58+
$this->fail();
5759
}
5860
}

0 commit comments

Comments
 (0)
0