From 4ae29b936bf8c35c8f815fe92ea8f21d341a6e75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Pudil?= Date: Wed, 15 Jan 2020 13:17:30 +0100 Subject: [PATCH] skip test that fails on appveyor due to a PHP bug --- tests/Framework/Assert.snapshot.update.phpt | 6 ++++++ 1 file changed, 6 insertions(+) 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);