mirror of
https://github.com/pestphp/pest.git
synced 2026-07-22 01:20:03 +02:00
24 lines
500 B
PHP
24 lines
500 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
test('warning', function (): void {
|
|
$this->fooqwdfwqdfqw;
|
|
|
|
expect(true)->toBeTrue();
|
|
});
|
|
|
|
test('user warning', function (): void {
|
|
trigger_error('This is a warning description', E_USER_WARNING);
|
|
|
|
expect(true)->toBeTrue();
|
|
});
|
|
|
|
describe('a "describe" group of tests', function (): void {
|
|
test('user warning', function (): void {
|
|
trigger_error('This is a warning description', E_USER_WARNING);
|
|
|
|
expect(true)->toBeTrue();
|
|
});
|
|
});
|