Skip to content

Commit

Permalink
Skip this test when assert.exception and zend.assertions are not conf…
Browse files Browse the repository at this point in the history
…igured as required
  • Loading branch information
sebastianbergmann committed Feb 19, 2023
1 parent 6067f55 commit a7839df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/end-to-end/event/test-assert-failure.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
The right events are emitted in the right order for a test that fails because of assert()
--SKIPIF--
<?php declare(strict_types=1);
if (ini_get('zend.assertions') != 1) {
print 'skip: zend.assertions=1 is required' . PHP_EOL;
}

if (ini_get('assert.exception') != 1) {
print 'skip: assert.exception=1 is required' . PHP_EOL;
}

if (DIRECTORY_SEPARATOR === '\\') {
print "skip: this test does not work on Windows / GitHub Actions\n";
}
Expand Down

0 comments on commit a7839df

Please sign in to comment.