Skip to content

Commit fc228da

Browse files
jrfnlgrogy
authored andcommitted
Fix test runs on PHP 5.3
As the tests don't have a dedicated bootstrap file and loading of the `polyfill.php` file is no longer handled via the classmap, a `require` is needed in the test files.
1 parent 00b72c8 commit fc228da

6 files changed

+6
-0
lines changed

tests/Manager.run.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* @testCase
55
*/
66

7+
require_once __DIR__ . '/../src/polyfill.php';
78
require __DIR__ . '/../vendor/autoload.php';
89

910
use PHP_Parallel_Lint\PhpParallelLint\Manager;

tests/Output.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* @testCase
55
*/
66

7+
require_once __DIR__ . '/../src/polyfill.php';
78
require __DIR__ . '/../vendor/autoload.php';
89

910
use PHP_Parallel_Lint\PhpParallelLint\ErrorFormatter;

tests/ParallelLint.lint.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* @testCase
55
*/
66

7+
require_once __DIR__ . '/../src/polyfill.php';
78
require __DIR__ . '/../vendor/autoload.php';
89

910
use PHP_Parallel_Lint\PhpParallelLint\ParallelLint;

tests/Settings.parseArguments.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* @testCase
55
*/
66

7+
require_once __DIR__ . '/../src/polyfill.php';
78
require __DIR__ . '/../vendor/autoload.php';
89

910
use PHP_Parallel_Lint\PhpParallelLint\Settings;

tests/SkipLintProcess.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* @testCase
55
*/
66

7+
require_once __DIR__ . '/../src/polyfill.php';
78
require __DIR__ . '/../vendor/autoload.php';
89

910
use Tester\Assert;

tests/SyntaxError.normalizeMessage.phpt

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* @testCase
55
*/
66

7+
require_once __DIR__ . '/../src/polyfill.php';
78
require __DIR__ . '/../vendor/autoload.php';
89

910
use PHP_Parallel_Lint\PhpParallelLint\Errors\SyntaxError;

0 commit comments

Comments
 (0)