Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
Is necesary setup library for PHP unit tests.
  • Loading branch information
grogy authored and jrfnl committed May 1, 2023
1 parent cc6c4a7 commit 88019e8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Manager.run.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

require __DIR__ . '/../vendor/autoload.php';

Tester\Environment::setup();

use JakubOnderka\PhpParallelLint\Manager;
use JakubOnderka\PhpParallelLint\NullWriter;
use JakubOnderka\PhpParallelLint\Settings;
Expand Down
2 changes: 2 additions & 0 deletions tests/Output.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

require __DIR__ . '/../vendor/autoload.php';

Tester\Environment::setup();

use JakubOnderka\PhpParallelLint\ErrorFormatter;
use JakubOnderka\PhpParallelLint\GitLabOutput;
use JakubOnderka\PhpParallelLint\CheckstyleOutput;
Expand Down
2 changes: 2 additions & 0 deletions tests/ParallelLint.lint.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

require __DIR__ . '/../vendor/autoload.php';

Tester\Environment::setup();

use JakubOnderka\PhpParallelLint\ParallelLint;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/Settings.parseArguments.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

require __DIR__ . '/../vendor/autoload.php';

Tester\Environment::setup();

use JakubOnderka\PhpParallelLint\Settings;
use Tester\Assert;

Expand Down
2 changes: 2 additions & 0 deletions tests/SkipLintProcess.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

require __DIR__ . '/../vendor/autoload.php';

Tester\Environment::setup();

use Tester\Assert;

class SkipLintProcessTest extends Tester\TestCase
Expand Down
2 changes: 2 additions & 0 deletions tests/SyntaxError.normalizeMessage.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

require __DIR__ . '/../vendor/autoload.php';

Tester\Environment::setup();

use JakubOnderka\PhpParallelLint\SyntaxError;
use Tester\Assert;

Expand Down

0 comments on commit 88019e8

Please sign in to comment.