We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cf45b1 commit b6dbfe0Copy full SHA for b6dbfe0
1 file changed
README.md
@@ -67,6 +67,14 @@ assertThat($result === true);
67
assertThat(true, is(true));
68
```
69
70
+:warning: To prevent tests from being marked as Risky (the `This test did not perform any assertions` message)
71
+add this code to your test case `tearDown` method:
72
+
73
+```php
74
+$this->addToAssertionCount(\Hamcrest\MatcherAssert::getCount());
75
+\Hamcrest\MatcherAssert::resetCount();
76
+```
77
78
:warning: **NOTE:** the global proxy-functions aren't autoloaded by default, so you will need to load them first:
79
80
```php
0 commit comments