Skip to content

Commit f04f050

Browse files
Make tests more robust
1 parent a07cc90 commit f04f050

File tree

5 files changed

+27
-1
lines changed

5 files changed

+27
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106

107107
env:
108108
PHP_EXTENSIONS: none, ctype, curl, dom, json, libxml, mbstring, openssl, phar, soap, tokenizer, xml, xmlwriter
109-
PHP_INI_VALUES: memory_limit=-1, assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On
109+
PHP_INI_VALUES: memory_limit=-1, assert.exception=1, zend.assertions=1, error_reporting=-1, log_errors_max_len=0, display_errors=On, display_startup_errors=On
110110

111111
strategy:
112112
fail-fast: false

tests/end-to-end/check-php-configuration/failure-with-xdebug.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ $_SERVER['argv'][] = '--check-php-configuration';
1212
require_once __DIR__ . '/../../bootstrap.php';
1313

1414
ini_set('display_errors', 0);
15+
ini_set('display_startup_errors', 1);
16+
ini_set('error_reporting', -1);
17+
ini_set('xdebug.show_exception_trace', 0);
18+
ini_set('zend.assertions', 1);
19+
ini_set('assert.exception', 1);
20+
ini_set('memory_limit', -1);
1521

1622
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
1723
?>

tests/end-to-end/check-php-configuration/failure-without-xdebug.phpt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ $_SERVER['argv'][] = '--check-php-configuration';
1212
require_once __DIR__ . '/../../bootstrap.php';
1313

1414
ini_set('display_errors', 0);
15+
ini_set('display_startup_errors', 1);
16+
ini_set('error_reporting', -1);
17+
ini_set('zend.assertions', 1);
18+
ini_set('assert.exception', 1);
19+
ini_set('memory_limit', -1);
1520

1621
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
1722
?>

tests/end-to-end/check-php-configuration/success-with-xdebug.phpt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ $_SERVER['argv'][] = '--check-php-configuration';
1111

1212
require_once __DIR__ . '/../../bootstrap.php';
1313

14+
ini_set('display_errors', 1);
15+
ini_set('display_startup_errors', 1);
16+
ini_set('error_reporting', -1);
17+
ini_set('xdebug.show_exception_trace', 0);
18+
ini_set('zend.assertions', 1);
19+
ini_set('assert.exception', 1);
20+
ini_set('memory_limit', -1);
21+
1422
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
1523
?>
1624
--EXPECTF--

tests/end-to-end/check-php-configuration/success-without-xdebug.phpt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ $_SERVER['argv'][] = '--check-php-configuration';
1111

1212
require_once __DIR__ . '/../../bootstrap.php';
1313

14+
ini_set('display_errors', 1);
15+
ini_set('display_startup_errors', 1);
16+
ini_set('error_reporting', -1);
17+
ini_set('zend.assertions', 1);
18+
ini_set('assert.exception', 1);
19+
ini_set('memory_limit', -1);
20+
1421
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
1522
?>
1623
--EXPECTF--

0 commit comments

Comments
 (0)