Skip to content

Commit dd1722b

Browse files
committed
fixed asserts tests for phpunit 4.x compat
1 parent 7441889 commit dd1722b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)