mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
chore: fixes test suite
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
test('deprecated', function () {
|
||||
str_contains(null, null);
|
||||
|
||||
@ -9,7 +7,7 @@ test('deprecated', function () {
|
||||
});
|
||||
|
||||
test('user deprecated', function () {
|
||||
trigger_deprecation('foo', '1.0', 'This is a deprecation description');
|
||||
@trigger_error(($package || $version ? "Since $package $version: " : '').($args ? vsprintf($message, $args) : $message), \E_USER_DEPRECATED);
|
||||
trigger_error('Since foo 1.0: This is a deprecation description', \E_USER_DEPRECATED);
|
||||
|
||||
expect(true)->toBeTrue();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user