Skip to content

Commit

Permalink
skip test that fails on appveyor due to a PHP bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jiripudil committed Jan 15, 2020
1 parent bef060d commit 0899819
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/Framework/Assert.snapshot.update.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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 && strpos(PHP_BINARY, 'phpdbg') !== false && 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);
Expand Down

0 comments on commit 0899819

Please sign in to comment.