diff --git a/tests/BypassFinals/native.errors.phpt b/tests/BypassFinals/native.errors.phpt index 50b2c01..a715716 100644 --- a/tests/BypassFinals/native.errors.phpt +++ b/tests/BypassFinals/native.errors.phpt @@ -25,9 +25,11 @@ Assert::error(function () { file_get_contents('unknown'); }, E_WARNING); -Assert::error(function () { - file_get_contents(__DIR__); -}, E_WARNING); +if (PHP_VERSION_ID >= 70400) { + Assert::error(function () { + file_get_contents(__DIR__); + }, defined('PHP_WINDOWS_VERSION_BUILD') ? E_WARNING : E_NOTICE); +} Assert::error(function () { file_put_contents(__DIR__, 'content');