diff --git a/tests/Framework/Assert.snapshot.update.phpt b/tests/Framework/Assert.snapshot.update.phpt index 66d9fba6..cb611303 100644 --- a/tests/Framework/Assert.snapshot.update.phpt +++ b/tests/Framework/Assert.snapshot.update.phpt @@ -9,6 +9,12 @@ use Tester\Snapshot; require __DIR__ . '/../bootstrap.php'; +// https://bugs.php.net/bug.php?id=76801 +// fixed by https://github.com/php/php-src/pull/3965 in PHP 7.2.18 +if (strncasecmp(PHP_OS, 'win', 3) === 0 && PHP_SAPI === 'phpdbg' && version_compare(PHP_VERSION, '7.2.18') < 0) { + Environment::skip('There is a bug in PHP :('); +} + putenv(Environment::UPDATE_SNAPSHOTS . '=1'); Snapshot::$snapshotDir = __DIR__ . DIRECTORY_SEPARATOR . 'snapshots'; Helpers::purge(Snapshot::$snapshotDir);