Skip to content

Commit cd1ce90

Browse files
committed
Improved Output | Additional Assertions (#2969)
* Changed console output format * fixed signatures to work with Gherkin * phpunit >5.2 compat * codestyle fixes
1 parent a9f9039 commit cd1ce90

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/unit/Codeception/Module/AssertsTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ public function testExceptions()
3333
$module->expectException(new Exception('here', 200), function() { throw new Exception('here', 200); });
3434
}
3535

36+
/**
37+
* @expectedException PHPUnit_Framework_AssertionFailedError
38+
*/
3639
public function testExceptionFails()
3740
{
3841
$module = new \Codeception\Module\Asserts(make_container());
39-
$this->expectException('PHPUnit_Framework_AssertionFailedError');
4042
$module->expectException(new Exception('here', 200), function() { throw new Exception('here', 2); });
4143
}
4244

0 commit comments

Comments
 (0)