Skip to content

Commit 87bbe45

Browse files
committed
tests: check for enabled assertions
1 parent 5ed840b commit 87bbe45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/run-tests.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ final class TestsRunner
3333

3434
public function run(): bool
3535
{
36+
if (ini_get('zend.assertions') !== '1') {
37+
throw new \RuntimeException('zend.assertions must be enabled in the system (zend.assertions = 1)');
38+
}
39+
3640
$success = $this->runTests(
3741
'Test correct phpcs.xml (no ignores, expecting no errors)',
3842
fn (): bool => $this->tests1(),

0 commit comments

Comments
 (0)