From 88019e881d30a074483e96c68ed55fd95f98ec7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Make=C5=A1?= Date: Mon, 1 May 2023 17:46:29 +0200 Subject: [PATCH] Fix unit tests Is necesary setup library for PHP unit tests. --- tests/Manager.run.phpt | 2 ++ tests/Output.phpt | 2 ++ tests/ParallelLint.lint.phpt | 2 ++ tests/Settings.parseArguments.phpt | 2 ++ tests/SkipLintProcess.phpt | 2 ++ tests/SyntaxError.normalizeMessage.phpt | 2 ++ 6 files changed, 12 insertions(+) diff --git a/tests/Manager.run.phpt b/tests/Manager.run.phpt index 65789dd..895501d 100644 --- a/tests/Manager.run.phpt +++ b/tests/Manager.run.phpt @@ -6,6 +6,8 @@ require __DIR__ . '/../vendor/autoload.php'; +Tester\Environment::setup(); + use JakubOnderka\PhpParallelLint\Manager; use JakubOnderka\PhpParallelLint\NullWriter; use JakubOnderka\PhpParallelLint\Settings; diff --git a/tests/Output.phpt b/tests/Output.phpt index 0e227f6..407c569 100644 --- a/tests/Output.phpt +++ b/tests/Output.phpt @@ -6,6 +6,8 @@ require __DIR__ . '/../vendor/autoload.php'; +Tester\Environment::setup(); + use JakubOnderka\PhpParallelLint\ErrorFormatter; use JakubOnderka\PhpParallelLint\GitLabOutput; use JakubOnderka\PhpParallelLint\CheckstyleOutput; diff --git a/tests/ParallelLint.lint.phpt b/tests/ParallelLint.lint.phpt index 4ed584c..847a9e7 100644 --- a/tests/ParallelLint.lint.phpt +++ b/tests/ParallelLint.lint.phpt @@ -6,6 +6,8 @@ require __DIR__ . '/../vendor/autoload.php'; +Tester\Environment::setup(); + use JakubOnderka\PhpParallelLint\ParallelLint; use Tester\Assert; diff --git a/tests/Settings.parseArguments.phpt b/tests/Settings.parseArguments.phpt index a669195..49ff5a3 100644 --- a/tests/Settings.parseArguments.phpt +++ b/tests/Settings.parseArguments.phpt @@ -6,6 +6,8 @@ require __DIR__ . '/../vendor/autoload.php'; +Tester\Environment::setup(); + use JakubOnderka\PhpParallelLint\Settings; use Tester\Assert; diff --git a/tests/SkipLintProcess.phpt b/tests/SkipLintProcess.phpt index fa4fe85..5eee71c 100644 --- a/tests/SkipLintProcess.phpt +++ b/tests/SkipLintProcess.phpt @@ -6,6 +6,8 @@ require __DIR__ . '/../vendor/autoload.php'; +Tester\Environment::setup(); + use Tester\Assert; class SkipLintProcessTest extends Tester\TestCase diff --git a/tests/SyntaxError.normalizeMessage.phpt b/tests/SyntaxError.normalizeMessage.phpt index 62dc636..904502c 100644 --- a/tests/SyntaxError.normalizeMessage.phpt +++ b/tests/SyntaxError.normalizeMessage.phpt @@ -6,6 +6,8 @@ require __DIR__ . '/../vendor/autoload.php'; +Tester\Environment::setup(); + use JakubOnderka\PhpParallelLint\SyntaxError; use Tester\Assert;