Skip to content

Commit 0899819

Browse files
committed
skip test that fails on appveyor due to a PHP bug
1 parent bef060d commit 0899819

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/Framework/Assert.snapshot.update.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ use Tester\Snapshot;
99

1010
require __DIR__ . '/../bootstrap.php';
1111

12+
// https://bugs.php.net/bug.php?id=76801
13+
// fixed by https://github.com/php/php-src/pull/3965 in PHP 7.2.18
14+
if (strncasecmp(PHP_OS, 'win', 3) === 0 && strpos(PHP_BINARY, 'phpdbg') !== false && version_compare(PHP_VERSION, '7.2.18') < 0) {
15+
Environment::skip('There is a bug in PHP :(');
16+
}
17+
1218
putenv(Environment::UPDATE_SNAPSHOTS . '=1');
1319
Snapshot::$snapshotDir = __DIR__ . DIRECTORY_SEPARATOR . 'snapshots';
1420
Helpers::purge(Snapshot::$snapshotDir);

0 commit comments

Comments
 (0)