Skip to content

Commit a7839df

Browse files
Skip this test when assert.exception and zend.assertions are not configured as required
1 parent 6067f55 commit a7839df

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/end-to-end/event/test-assert-failure.phpt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
The right events are emitted in the right order for a test that fails because of assert()
33
--SKIPIF--
44
<?php declare(strict_types=1);
5+
if (ini_get('zend.assertions') != 1) {
6+
print 'skip: zend.assertions=1 is required' . PHP_EOL;
7+
}
8+
9+
if (ini_get('assert.exception') != 1) {
10+
print 'skip: assert.exception=1 is required' . PHP_EOL;
11+
}
12+
513
if (DIRECTORY_SEPARATOR === '\\') {
614
print "skip: this test does not work on Windows / GitHub Actions\n";
715
}

0 commit comments

Comments
 (0)