mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
Renames method to throwsNoExceptions.
This commit is contained in:
@ -161,9 +161,11 @@ final class TestCall
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Informs the test runner that no expectations happen in this test.
|
* Informs the test runner that no expectations happen in this test,
|
||||||
|
* and its purpose is simply to check whether the given code can
|
||||||
|
* be executed without throwing exceptions.
|
||||||
*/
|
*/
|
||||||
public function hasNoExpectations(): TestCall
|
public function throwsNoExceptions(): TestCall
|
||||||
{
|
{
|
||||||
$this->testCaseMethod->proxies->add(Backtrace::file(), Backtrace::line(), 'expectNotToPerformAssertions', []);
|
$this->testCaseMethod->proxies->add(Backtrace::file(), Backtrace::line(), 'expectNotToPerformAssertions', []);
|
||||||
|
|
||||||
|
|||||||
@ -8,4 +8,4 @@ it('allows access to the underlying expectNotToPerformAssertions method', functi
|
|||||||
|
|
||||||
it('allows performing no expectations without being risky', function () {
|
it('allows performing no expectations without being risky', function () {
|
||||||
$result = 1 + 1;
|
$result = 1 + 1;
|
||||||
})->hasNoExpectations();
|
})->throwsNoExceptions();
|
||||||
Reference in New Issue
Block a user