mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 14:23:34 +02:00
20 lines
528 B
PHP
20 lines
528 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
it('allows access to the underlying expectNotToPerformAssertions method', function (): void {
|
|
$this->expectNotToPerformAssertions();
|
|
|
|
$result = 1 + 1;
|
|
});
|
|
|
|
it('allows performing no expectations without being risky', function (): void {
|
|
$result = 1 + 1;
|
|
})->throwsNoExceptions();
|
|
|
|
describe('a "describe" group of tests', function (): void {
|
|
it('allows performing no expectations without being risky', function (): void {
|
|
$result = 1 + 1;
|
|
});
|
|
})->throwsNoExceptions();
|