Skip to content

Commit 1503d76

Browse files
Ensure that the bootstrap script is only loaded once
1 parent 8b05065 commit 1503d76

File tree

272 files changed

+276
-276
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

272 files changed

+276
-276
lines changed

tests/_files/phpt-for-coverage.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
PHPT for testing coverage
33
--FILE--
44
<?php declare(strict_types=1);
5-
require __DIR__ . '/../bootstrap.php';
5+
require_once __DIR__ . '/../bootstrap.php';
66
$coveredClass = new CoveredClass();
77
$coveredClass->publicMethod();
88
--EXPECT--

tests/end-to-end/abstract-test-class.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = 'AbstractTest';
88
$_SERVER['argv'][] = __DIR__ . '/../_files/AbstractTest.php';
99

10-
require __DIR__ . '/../bootstrap.php';
10+
require_once __DIR__ . '/../bootstrap.php';
1111
PHPUnit\TextUI\Command::main();
1212
--EXPECTF--
1313
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/assertion.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $_SERVER['argv'][] = '--do-not-cache-result';
1919
$_SERVER['argv'][] = '--no-configuration';
2020
$_SERVER['argv'][] = __DIR__ . '/../_files/AssertionExampleTest.php';
2121

22-
require __DIR__ . '/../bootstrap.php';
22+
require_once __DIR__ . '/../bootstrap.php';
2323
PHPUnit\TextUI\Command::main();
2424
--EXPECTF--
2525
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/cli/columns-max.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = '--columns=max';
88
$_SERVER['argv'][] = __DIR__ . '/../../_files/BankAccountTest.php';
99

10-
require __DIR__ . '/../../bootstrap.php';
10+
require_once __DIR__ . '/../../bootstrap.php';
1111
PHPUnit\TextUI\Command::main();
1212
--EXPECTF--
1313
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/cli/columns.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = '--columns=40';
88
$_SERVER['argv'][] = __DIR__ . '/../../_files/BankAccountTest.php';
99

10-
require __DIR__ . '/../../bootstrap.php';
10+
require_once __DIR__ . '/../../bootstrap.php';
1111
PHPUnit\TextUI\Command::main();
1212
--EXPECTF--
1313
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/cli/deprecation-warning-with-class.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $_SERVER['argv'][1] = '--no-configuration';
66
$_SERVER['argv'][2] = 'DummyFooTest';
77
$_SERVER['argv'][3] = __DIR__ . '/../../_files/DummyFooTest.php';
88

9-
require __DIR__ . '/../../bootstrap.php';
9+
require_once __DIR__ . '/../../bootstrap.php';
1010
PHPUnit\TextUI\Command::main();
1111
--EXPECTF--
1212
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/cli/generate-configuration.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $_SERVER['argv'][] = '--do-not-cache-result';
1010
$_SERVER['argv'][] = '--no-configuration';
1111
$_SERVER['argv'][] = '--generate-configuration';
1212

13-
require __DIR__ . '/../../bootstrap.php';
13+
require_once __DIR__ . '/../../bootstrap.php';
1414
chdir(sys_get_temp_dir());
1515
PHPUnit\TextUI\Command::main();
1616
--EXPECTF--

tests/end-to-end/cli/help-color.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ phpunit --help
44
--no-configuration --help
55
--FILE--
66
<?php declare(strict_types=1);
7-
require __DIR__ . '/../../bootstrap.php';
7+
require_once __DIR__ . '/../../bootstrap.php';
88

99
$help = new PHPUnit\TextUI\Help(72, true);
1010

tests/end-to-end/cli/help.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ phpunit
44
--no-configuration
55
--FILE--
66
<?php declare(strict_types=1);
7-
require __DIR__ . '/../../bootstrap.php';
7+
require_once __DIR__ . '/../../bootstrap.php';
88
PHPUnit\TextUI\Command::main();
99
--EXPECTF_EXTERNAL--
1010
_files/output-cli-usage.txt

tests/end-to-end/cli/help2.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ phpunit --help
44
--no-configuration --help
55
--FILE--
66
<?php declare(strict_types=1);
7-
require __DIR__ . '/../../bootstrap.php';
7+
require_once __DIR__ . '/../../bootstrap.php';
88
PHPUnit\TextUI\Command::main();
99
--EXPECTF_EXTERNAL--
1010
_files/output-cli-usage.txt

tests/end-to-end/cli/mycommand.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ $_SERVER['argv'][] = '--my-option=123';
88
$_SERVER['argv'][] = '--my-other-option';
99
$_SERVER['argv'][] = \realpath(__DIR__ . '/../../_files/BankAccountTest.php');
1010

11-
require __DIR__ . '/../../bootstrap.php';
12-
require __DIR__ . '/_files/MyCommand.php';
11+
require_once __DIR__ . '/../../bootstrap.php';
12+
require_once __DIR__ . '/_files/MyCommand.php';
1313

1414
MyCommand::main();
1515
--EXPECTF--

tests/end-to-end/cli/options-after-arguments.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = \realpath(__DIR__ . '/../../_files/BankAccountTest.php');
88
$_SERVER['argv'][] = '--colors=always';
99

10-
require __DIR__ . '/../../bootstrap.php';
10+
require_once __DIR__ . '/../../bootstrap.php';
1111

1212
PHPUnit\TextUI\Command::main();
1313
--EXPECTF--

tests/end-to-end/cli/test-file-not-found.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Test incorrect testFile is reported
44
--no-configuration nonExistingFile.php
55
--FILE--
66
<?php declare(strict_types=1);
7-
require __DIR__ . '/../../bootstrap.php';
7+
require_once __DIR__ . '/../../bootstrap.php';
88
PHPUnit\TextUI\Command::main();
99
--EXPECTF--
1010
Cannot open file "nonExistingFile.php".

tests/end-to-end/concrete-test-class.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $_SERVER['argv'][] = '--do-not-cache-result';
66
$_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = __DIR__ . '/../_files/ConcreteTest.php';
88

9-
require __DIR__ . '/../bootstrap.php';
9+
require_once __DIR__ . '/../bootstrap.php';
1010
PHPUnit\TextUI\Command::main();
1111
--EXPECTF--
1212
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/dataprovider-issue-2833.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $_SERVER['argv'][] = '--do-not-cache-result';
66
$_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = __DIR__ . '/../_files/DataProviderIssue2833/';
88

9-
require __DIR__ . '/../bootstrap.php';
9+
require_once __DIR__ . '/../bootstrap.php';
1010
PHPUnit\TextUI\Command::main();
1111
--EXPECTF--
1212
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/dataprovider-issue-2859.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $_SERVER['argv'][] = '--do-not-cache-result';
66
$_SERVER['argv'][] = '-c';
77
$_SERVER['argv'][] = __DIR__ . '/../_files/DataProviderIssue2859/phpunit.xml';
88

9-
require __DIR__ . '/../bootstrap.php';
9+
require_once __DIR__ . '/../bootstrap.php';
1010
PHPUnit\TextUI\Command::main();
1111
--EXPECTF--
1212
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/dataprovider-issue-2922.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = '--exclude-group=foo';
88
$_SERVER['argv'][] = __DIR__ . '/../_files/DataProviderIssue2922/';
99

10-
require __DIR__ . '/../bootstrap.php';
10+
require_once __DIR__ . '/../bootstrap.php';
1111
PHPUnit\TextUI\Command::main();
1212
--EXPECTF--
1313
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/dataprovider-log-xml-isolation.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $_SERVER['argv'][] = '--log-junit';
99
$_SERVER['argv'][] = 'php://stdout';
1010
$_SERVER['argv'][] = __DIR__ . '/../_files/DataProviderTest.php';
1111

12-
require __DIR__ . '/../bootstrap.php';
12+
require_once __DIR__ . '/../bootstrap.php';
1313
PHPUnit\TextUI\Command::main();
1414
--EXPECTF--
1515
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/dataprovider-log-xml.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $_SERVER['argv'][] = '--log-junit';
88
$_SERVER['argv'][] = 'php://stdout';
99
$_SERVER['argv'][] = __DIR__ . '/../_files/DataProviderTest.php';
1010

11-
require __DIR__ . '/../bootstrap.php';
11+
require_once __DIR__ . '/../bootstrap.php';
1212
PHPUnit\TextUI\Command::main();
1313
--EXPECTF--
1414
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/default-isolation.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = '--process-isolation';
88
$_SERVER['argv'][] = __DIR__ . '/../_files/BankAccountTest.php';
99

10-
require __DIR__ . '/../bootstrap.php';
10+
require_once __DIR__ . '/../bootstrap.php';
1111
PHPUnit\TextUI\Command::main();
1212
--EXPECTF--
1313
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/default.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $_SERVER['argv'][] = '--do-not-cache-result';
66
$_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = __DIR__ . '/../_files/BankAccountTest.php';
88

9-
require __DIR__ . '/../bootstrap.php';
9+
require_once __DIR__ . '/../bootstrap.php';
1010
PHPUnit\TextUI\Command::main();
1111
--EXPECTF--
1212
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/defaulttestsuite-using-testsuite.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $_SERVER['argv'][] = __DIR__.'/../_files/configuration.defaulttestsuite.xml';
99
$_SERVER['argv'][] = '--testsuite';
1010
$_SERVER['argv'][] = 'First';
1111

12-
require __DIR__ . '/../bootstrap.php';
12+
require_once __DIR__ . '/../bootstrap.php';
1313
PHPUnit\TextUI\Command::main();
1414
--EXPECTF--
1515
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/defaulttestsuite.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $_SERVER['argv'][] = '--testdox';
77
$_SERVER['argv'][] = '--configuration';
88
$_SERVER['argv'][] = __DIR__.'/../_files/configuration.defaulttestsuite.xml';
99

10-
require __DIR__ . '/../bootstrap.php';
10+
require_once __DIR__ . '/../bootstrap.php';
1111
PHPUnit\TextUI\Command::main();
1212
--EXPECTF--
1313
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/dump-xdebug-filter.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $_SERVER['argv'][] = __DIR__ . '/../_files/configuration_whitelist.xml';
1313
$_SERVER['argv'][] = '--dump-xdebug-filter';
1414
$_SERVER['argv'][] = 'php://stderr';
1515

16-
require __DIR__ . '/../bootstrap.php';
16+
require_once __DIR__ . '/../bootstrap.php';
1717
PHPUnit\TextUI\Command::main();
1818
--EXPECTF--
1919
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/empty-testcase.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $_SERVER['argv'][] = '--do-not-cache-result';
66
$_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = __DIR__ . '/../_files/EmptyTestCaseTest.php';
88

9-
require __DIR__ . '/../bootstrap.php';
9+
require_once __DIR__ . '/../bootstrap.php';
1010
PHPUnit\TextUI\Command::main();
1111
--EXPECTF--
1212
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/exception-stack.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $_SERVER['argv'][] = '--do-not-cache-result';
66
$_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = __DIR__ . '/../_files/ExceptionStackTest.php';
88

9-
require __DIR__ . '/../bootstrap.php';
9+
require_once __DIR__ . '/../bootstrap.php';
1010
PHPUnit\TextUI\Command::main();
1111
--EXPECTF--
1212
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/exclude-group-isolation.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $_SERVER['argv'][] = '--exclude-group';
99
$_SERVER['argv'][] = 'balanceIsInitiallyZero';
1010
$_SERVER['argv'][] = __DIR__ . '/../_files/BankAccountTest.php';
1111

12-
require __DIR__ . '/../bootstrap.php';
12+
require_once __DIR__ . '/../bootstrap.php';
1313
PHPUnit\TextUI\Command::main();
1414
--EXPECTF--
1515
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/exclude-group.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $_SERVER['argv'][] = '--exclude-group';
88
$_SERVER['argv'][] = 'balanceIsInitiallyZero';
99
$_SERVER['argv'][] = __DIR__ . '/../_files/BankAccountTest.php';
1010

11-
require __DIR__ . '/../bootstrap.php';
11+
require_once __DIR__ . '/../bootstrap.php';
1212
PHPUnit\TextUI\Command::main();
1313
--EXPECTF--
1414
PHPUnit %s by Sebastian Bergmann and contributors.

tests/end-to-end/execution-order/cache-result.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $_SERVER['argv'][] = '--cache-result';
1212
$_SERVER['argv'][] = '--cache-result-file=' . $target;
1313
$_SERVER['argv'][] = realpath(__DIR__ . '/../execution-order/_files/MultiDependencyTest.php');
1414

15-
require __DIR__ . '/../../bootstrap.php';
15+
require_once __DIR__ . '/../../bootstrap.php';
1616

1717
PHPUnit\TextUI\Command::main(false);
1818

tests/end-to-end/execution-order/defects-first-order-via-cli.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $_SERVER['argv'][] = '--cache-result';
1313
$_SERVER['argv'][] = '--cache-result-file=' . $tmpResultCache;
1414
$_SERVER['argv'][] = \realpath(__DIR__ . '/_files/MultiDependencyTest.php');
1515

16-
require __DIR__ . '/../../bootstrap.php';
16+
require_once __DIR__ . '/../../bootstrap.php';
1717

1818
PHPUnit\TextUI\Command::main();
1919

tests/end-to-end/execution-order/dependencies-clone.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = '--verbose';
88
$_SERVER['argv'][] = \realpath(__DIR__ . '/_files/ClonedDependencyTest.php');
99

10-
require __DIR__ . '/../../bootstrap.php';
10+
require_once __DIR__ . '/../../bootstrap.php';
1111

1212
PHPUnit\TextUI\Command::main();
1313
--EXPECTF--

tests/end-to-end/execution-order/dependencies-isolation.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $_SERVER['argv'][] = '--process-isolation';
88
$_SERVER['argv'][] = '--verbose';
99
$_SERVER['argv'][] = \realpath(__DIR__ . '/_files/DependencyTestSuite.php');
1010

11-
require __DIR__ . '/../../bootstrap.php';
11+
require_once __DIR__ . '/../../bootstrap.php';
1212

1313
PHPUnit\TextUI\Command::main();
1414
--EXPECTF--

tests/end-to-end/execution-order/depends-as-parameter-with-isolation.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = '--process-isolation';
88
$_SERVER['argv'][] = \realpath(__DIR__ . '/_files/StackTest.php');
99

10-
require __DIR__ . '/../../bootstrap.php';
10+
require_once __DIR__ . '/../../bootstrap.php';
1111

1212
PHPUnit\TextUI\Command::main();
1313
--EXPECTF--

tests/end-to-end/execution-order/depends-as-parameter.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $_SERVER['argv'][] = '--do-not-cache-result';
66
$_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = \realpath(__DIR__ . '/_files/StackTest.php');
88

9-
require __DIR__ . '/../../bootstrap.php';
9+
require_once __DIR__ . '/../../bootstrap.php';
1010

1111
PHPUnit\TextUI\Command::main();
1212
--EXPECTF--

tests/end-to-end/execution-order/depends-multiple-parameter-with-isolation.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = '--process-isolation';
88
$_SERVER['argv'][] = \realpath(__DIR__ . '/_files/MultiDependencyTest.php');
99

10-
require __DIR__ . '/../../bootstrap.php';
10+
require_once __DIR__ . '/../../bootstrap.php';
1111

1212
PHPUnit\TextUI\Command::main();
1313
--EXPECTF--

tests/end-to-end/execution-order/depends-multiple-parameters.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $_SERVER['argv'][] = '--do-not-cache-result';
66
$_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = \realpath(__DIR__ . '/_files/MultiDependencyTest.php');
88

9-
require __DIR__ . '/../../bootstrap.php';
9+
require_once __DIR__ . '/../../bootstrap.php';
1010

1111
PHPUnit\TextUI\Command::main();
1212
--EXPECTF--

tests/end-to-end/execution-order/execution-order-options-via-config.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $_SERVER['argv'][] = '-c';
88
$_SERVER['argv'][] = \realpath(__DIR__ . '/../../_files/configuration_execution_order_options.xml');
99
$_SERVER['argv'][] = \realpath(__DIR__ . '/_files/MultiDependencyTest.php');
1010

11-
require __DIR__ . '/../../bootstrap.php';
11+
require_once __DIR__ . '/../../bootstrap.php';
1212

1313
PHPUnit\TextUI\Command::main();
1414
--EXPECTF--

tests/end-to-end/execution-order/order-by-default-invalid-via-cli.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = '--debug';
88
$_SERVER['argv'][] = '--order-by=default,foobar';
99

10-
require __DIR__ . '/../../bootstrap.php';
10+
require_once __DIR__ . '/../../bootstrap.php';
1111

1212
PHPUnit\TextUI\Command::main();
1313
--EXPECTF--

tests/end-to-end/execution-order/order-by-duration-via-cli.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $_SERVER['argv'][] = '--cache-result';
1313
$_SERVER['argv'][] = '--cache-result-file=' . $tmpResultCache;
1414
$_SERVER['argv'][] = __DIR__ . '/_files/TestWithDifferentDurations.php';
1515

16-
require __DIR__ . '/../../bootstrap.php';
16+
require_once __DIR__ . '/../../bootstrap.php';
1717
PHPUnit\TextUI\Command::main();
1818

1919
unlink($tmpResultCache);

tests/end-to-end/execution-order/order-by-duration-via-phpunit-xml.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $_SERVER['argv'][] = '--debug';
1313
$_SERVER['argv'][] = '--cache-result';
1414
$_SERVER['argv'][] = '--cache-result-file=' . $tmpResultCache;
1515

16-
require __DIR__ . '/../../bootstrap.php';
16+
require_once __DIR__ . '/../../bootstrap.php';
1717
PHPUnit\TextUI\Command::main();
1818

1919
unlink($tmpResultCache);

tests/end-to-end/execution-order/repeat.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $_SERVER['argv'][] = '--repeat';
88
$_SERVER['argv'][] = '3';
99
$_SERVER['argv'][] = \realpath(__DIR__ . '/../../_files/BankAccountTest.php');
1010

11-
require __DIR__ . '/../../bootstrap.php';
11+
require_once __DIR__ . '/../../bootstrap.php';
1212

1313
PHPUnit\TextUI\Command::main();
1414
--EXPECTF--

tests/end-to-end/execution-order/stop-on-defect-via-cli.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = '--stop-on-defect';
88
$_SERVER['argv'][] = \realpath(__DIR__ . '/../../_files/StopOnWarningTestSuite.php');
99

10-
require __DIR__ . '/../../bootstrap.php';
10+
require_once __DIR__ . '/../../bootstrap.php';
1111

1212
PHPUnit\TextUI\Command::main();
1313
--EXPECTF--

tests/end-to-end/execution-order/stop-on-defect-via-config.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $_SERVER['argv'][] = '-c';
77
$_SERVER['argv'][] = \realpath(__DIR__ . '/../../_files/configuration_stop_on_defect.xml');
88
$_SERVER['argv'][] = \realpath(__DIR__ . '/../../_files/StopOnWarningTestSuite.php');
99

10-
require __DIR__ . '/../../bootstrap.php';
10+
require_once __DIR__ . '/../../bootstrap.php';
1111

1212
PHPUnit\TextUI\Command::main();
1313
--EXPECTF--

tests/end-to-end/execution-order/stop-on-error-via-cli.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $_SERVER['argv'][] = '--no-configuration';
77
$_SERVER['argv'][] = '--stop-on-error';
88
$_SERVER['argv'][] = \realpath(__DIR__ . '/../../_files/StopOnErrorTestSuite.php');
99

10-
require __DIR__ . '/../../bootstrap.php';
10+
require_once __DIR__ . '/../../bootstrap.php';
1111

1212
PHPUnit\TextUI\Command::main();
1313
--EXPECTF--

0 commit comments

Comments
 (0)