Skip to content

Commit 69bdcf4

Browse files
committed
Use assertion for testFailingTests
1 parent 7304097 commit 69bdcf4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/UnifiedSpecTests/UnifiedSpecTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,7 @@ public function testFailingTests(...$args)
135135
$failed = true;
136136
}
137137

138-
if (! $failed) {
139-
$this->fail('Expected test to throw an exception');
140-
}
138+
assertTrue($failed, 'Expected test to throw an exception');
141139
}
142140

143141
public function provideFailingTests()

0 commit comments

Comments
 (0)