We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When testing that an exception is not thrown, the assertion count is not raised. This is true for both variants on the latest 2.2 release:
verify($callable)->callableDoesNotThrow(\Exception::class); expect($callable)->callableNotToThrow(\Exception::class);
Here is a sample test:
public function testCallableDoesNotThrow() { $testFunction = function() {}; expect($testFunction)->callableNotToThrow(\Exception::class); }
The text was updated successfully, but these errors were encountered:
It happens because assertDoesNotThrow does not call any methods of \PhpUnit\Framework\Assert class.
\PhpUnit\Framework\Assert
Sorry, something went wrong.
No branches or pull requests
When testing that an exception is not thrown, the assertion count is not raised. This is true for both variants on the latest 2.2 release:
Here is a sample test:
The text was updated successfully, but these errors were encountered: