mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 18:57:22 +01:00
revert(fix): on risky expecatations
This commit is contained in:
@ -6,7 +6,6 @@ namespace Pest\Expectations;
|
|||||||
|
|
||||||
use Pest\Expectation;
|
use Pest\Expectation;
|
||||||
use Pest\Support\Arr;
|
use Pest\Support\Arr;
|
||||||
use PHPUnit\Framework\Assert;
|
|
||||||
use PHPUnit\Framework\ExpectationFailedException;
|
use PHPUnit\Framework\ExpectationFailedException;
|
||||||
use SebastianBergmann\Exporter\Exporter;
|
use SebastianBergmann\Exporter\Exporter;
|
||||||
|
|
||||||
@ -65,8 +64,6 @@ final class OppositeExpectation
|
|||||||
/* @phpstan-ignore-next-line */
|
/* @phpstan-ignore-next-line */
|
||||||
$this->original->{$name}(...$arguments);
|
$this->original->{$name}(...$arguments);
|
||||||
} catch (ExpectationFailedException) {
|
} catch (ExpectationFailedException) {
|
||||||
Assert::assertTrue(true);
|
|
||||||
|
|
||||||
return $this->original;
|
return $this->original;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,8 +80,6 @@ final class OppositeExpectation
|
|||||||
try {
|
try {
|
||||||
$this->original->{$name}; // @phpstan-ignore-line
|
$this->original->{$name}; // @phpstan-ignore-line
|
||||||
} catch (ExpectationFailedException) { // @phpstan-ignore-line
|
} catch (ExpectationFailedException) { // @phpstan-ignore-line
|
||||||
Assert::assertTrue(true);
|
|
||||||
|
|
||||||
return $this->original;
|
return $this->original;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user