Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unit tests in master branch - unit tests library issue #141

Merged
merged 2 commits into from
May 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 3 additions & 1 deletion 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 Expand Up @@ -57,7 +59,7 @@ class SettingsParseArgumentsTest extends Tester\TestCase
$expectedSettings->colors = Settings::DISABLED;
$expectedSettings->showProgress = true;
$expectedSettings->format = Settings::FORMAT_TEXT;
$expectedSettings->deprecated = false;
$expectedSettings->showDeprecated = false;

Assert::equal($expectedSettings->shortTag, $settings->shortTag);
Assert::equal($expectedSettings->aspTags, $settings->aspTags);
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