Skip to content

Commit 907ec6c

Browse files
Use PHPT INI section instead of ini_set()
1 parent 125438f commit 907ec6c

File tree

4 files changed

+30
-30
lines changed

4 files changed

+30
-30
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ phpunit --check-php-configuration (failure, Xdebug loaded)
55
if (!extension_loaded('xdebug')) {
66
print 'skip: Extension Xdebug must be loaded.';
77
}
8+
--INI--
9+
display_errors=0
10+
display_startup_errors=1
11+
error_reporting=-1
12+
xdebug.show_exception_trace=0
13+
zend.assertions=1
14+
assert.exception=1
15+
memory_limit=-1
816
--FILE--
917
<?php
1018
$_SERVER['argv'][] = '--check-php-configuration';
1119

1220
require_once __DIR__ . '/../../bootstrap.php';
1321

14-
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);
21-
2222
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
2323
?>
2424
--EXPECTF--

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ phpunit --check-php-configuration (failure, Xdebug not loaded)
55
if (extension_loaded('xdebug')) {
66
print 'skip: Extension Xdebug must not be loaded.';
77
}
8+
--INI--
9+
display_errors=0
10+
display_startup_errors=1
11+
error_reporting=-1
12+
zend.assertions=1
13+
assert.exception=1
14+
memory_limit=-1
815
--FILE--
916
<?php
1017
$_SERVER['argv'][] = '--check-php-configuration';
1118

1219
require_once __DIR__ . '/../../bootstrap.php';
1320

14-
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);
20-
2121
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
2222
?>
2323
--EXPECTF--

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ phpunit --check-php-configuration (success, Xdebug loaded)
55
if (!extension_loaded('xdebug')) {
66
print 'skip: Extension Xdebug must be loaded.';
77
}
8+
--INI--
9+
display_errors=1
10+
display_startup_errors=1
11+
error_reporting=-1
12+
xdebug.show_exception_trace=0
13+
zend.assertions=1
14+
assert.exception=1
15+
memory_limit=-1
816
--FILE--
917
<?php
1018
$_SERVER['argv'][] = '--check-php-configuration';
1119

1220
require_once __DIR__ . '/../../bootstrap.php';
1321

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-
2222
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
2323
?>
2424
--EXPECTF--

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ phpunit --check-php-configuration (success, Xdebug not loaded)
55
if (extension_loaded('xdebug')) {
66
print 'skip: Extension Xdebug must not be loaded.';
77
}
8+
--INI--
9+
display_errors=1
10+
display_startup_errors=1
11+
error_reporting=-1
12+
zend.assertions=1
13+
assert.exception=1
14+
memory_limit=-1
815
--FILE--
916
<?php
1017
$_SERVER['argv'][] = '--check-php-configuration';
1118

1219
require_once __DIR__ . '/../../bootstrap.php';
1320

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-
2121
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
2222
?>
2323
--EXPECTF--

0 commit comments

Comments
 (0)