Adds support for chaining hasNoExpectations to the test method.

This commit is contained in:
luke
2021-12-08 08:58:42 +00:00
parent dd081c59b7
commit d969eaac2c
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,11 @@
<?php
it('allows access to the underlying expectNotToPerformAssertions method', function () {
$this->expectNotToPerformAssertions();
$result = 1 + 1;
});
it('allows performing no expectations without being risky', function () {
$result = 1 + 1;
})->hasNoExpectations();