chore: fixes test suite

This commit is contained in:
Nuno Maduro
2024-04-28 12:02:42 +01:00
parent a2cb78710d
commit 2070538fd3
7 changed files with 14 additions and 54 deletions

View File

@ -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();
});