Files
pest/tests/Features/HasNoExpectations.php

12 lines
285 B
PHP

<?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();