From 2091ded9029f6ddcdadbda7d8363c8d23f07197e Mon Sep 17 00:00:00 2001 From: Theo D Date: Fri, 1 Mar 2024 22:20:08 +0100 Subject: [PATCH] Change `$this` to `self` in generate-tests.php for method `assertStringEqualsFile` in TaskTestCase --- bin/generate-tests.php | 4 ++-- src/Attribute/AsCommandArgument.php | 2 +- src/Attribute/AsOption.php | 2 +- src/Attribute/AsTask.php | 2 +- src/Context.php | 4 ++-- src/SectionOutput.php | 2 +- tests/Examples/Generated/ArgsAnotherArgsTest.php | 4 ++-- tests/Examples/Generated/ArgsArgsTest.php | 4 ++-- tests/Examples/Generated/BarBarTest.php | 4 ++-- tests/Examples/Generated/CacheComplexTest.php | 4 ++-- tests/Examples/Generated/CacheSimpleTest.php | 4 ++-- tests/Examples/Generated/ContextContextDoNotExistTest.php | 4 ++-- tests/Examples/Generated/ContextContextDynamicTest.php | 4 ++-- tests/Examples/Generated/ContextContextInfoForcedTest.php | 4 ++-- tests/Examples/Generated/ContextContextMyDefaultTest.php | 4 ++-- tests/Examples/Generated/ContextContextPathTest.php | 4 ++-- tests/Examples/Generated/ContextContextProductionTest.php | 4 ++-- tests/Examples/Generated/ContextContextRunTest.php | 4 ++-- tests/Examples/Generated/ContextContextTest.php | 4 ++-- tests/Examples/Generated/ContextContextWithTest.php | 4 ++-- tests/Examples/Generated/EnabledInProduction.php | 4 ++-- tests/Examples/Generated/EnvEnvTest.php | 4 ++-- tests/Examples/Generated/EventListenerMyTaskTest.php | 4 ++-- tests/Examples/Generated/FailureAllowFailureTest.php | 4 ++-- tests/Examples/Generated/FailureFailureTest.php | 4 ++-- tests/Examples/Generated/FilesystemFilesystemTest.php | 4 ++-- tests/Examples/Generated/FilesystemFindTest.php | 4 ++-- tests/Examples/Generated/FooBarTest.php | 4 ++-- tests/Examples/Generated/FooFooTest.php | 4 ++-- tests/Examples/Generated/HelloTest.php | 4 ++-- tests/Examples/Generated/HttpRequestTest.php | 4 ++-- tests/Examples/Generated/ListTest.php | 4 ++-- tests/Examples/Generated/NewProjectInitTest.php | 4 ++-- tests/Examples/Generated/NewProjectTest.php | 4 ++-- tests/Examples/Generated/NoConfigCompletionTest.php | 4 ++-- tests/Examples/Generated/NoConfigUnknownTest.php | 4 ++-- tests/Examples/Generated/NoConfigUnknownWithArgsTest.php | 4 ++-- tests/Examples/Generated/NoNamespaceTest.php | 4 ++-- tests/Examples/Generated/NotRenameRenamedTest.php | 4 ++-- tests/Examples/Generated/NotifyNotifyOnFinishTest.php | 4 ++-- tests/Examples/Generated/NotifySendNotifyTest.php | 4 ++-- tests/Examples/Generated/OutputOutputTest.php | 4 ++-- tests/Examples/Generated/ParallelExceptionTest.php | 4 ++-- tests/Examples/Generated/ParallelSleepTest.php | 4 ++-- tests/Examples/Generated/QuietQuietTest.php | 4 ++-- tests/Examples/Generated/RunTestFileTest.php | 4 ++-- tests/Examples/Generated/RunVariablesTest.php | 4 ++-- tests/Examples/Generated/RunWhoamiTest.php | 4 ++-- tests/Examples/Generated/RunWithProcessHelperTest.php | 4 ++-- tests/Examples/Generated/ShellBashTest.php | 4 ++-- tests/Examples/Generated/ShellShTest.php | 4 ++-- tests/Examples/Generated/SignalSigusr2Test.php | 4 ++-- tests/Examples/Generated/SymfonyGreetTest.php | 4 ++-- tests/Examples/Generated/SymfonyHelloTest.php | 4 ++-- .../Generated/VersionGuardMinVersionCheckFailTest.php | 4 ++-- tests/Examples/Generated/VersionGuardMinVersionCheckTest.php | 4 ++-- tests/Examples/Generated/WaitForCustomWaitForTaskTest.php | 4 ++-- .../Generated/WaitForWaitForDockerContainerTaskTest.php | 4 ++-- tests/Examples/Generated/WaitForWaitForPortTaskTest.php | 4 ++-- tests/Examples/Generated/WaitForWaitForUrlTaskTest.php | 4 ++-- ...tForWaitForUrlWithSpecificResponseContentAndStatusTest.php | 4 ++-- .../Generated/WaitForWaitForUrlWithStatusCodeOnlyTest.php | 4 ++-- tests/Examples/Generated/YamlDumpTest.php | 4 ++-- tests/Examples/Generated/YamlParseTest.php | 4 ++-- 64 files changed, 124 insertions(+), 124 deletions(-) diff --git a/bin/generate-tests.php b/bin/generate-tests.php index bb904e50..e2d4706f 100755 --- a/bin/generate-tests.php +++ b/bin/generate-tests.php @@ -167,9 +167,9 @@ public function test(): void $process = $this->runTask([{{ args }}]{{ cwd }}); $this->assertSame({{ exitCode }}, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/src/Attribute/AsCommandArgument.php b/src/Attribute/AsCommandArgument.php index e1ea8963..180f7ae2 100644 --- a/src/Attribute/AsCommandArgument.php +++ b/src/Attribute/AsCommandArgument.php @@ -5,7 +5,7 @@ abstract class AsCommandArgument { public function __construct( - public readonly string|null $name = null, + public readonly ?string $name = null, ) { } } diff --git a/src/Attribute/AsOption.php b/src/Attribute/AsOption.php index 870e1e68..fa93cfa4 100644 --- a/src/Attribute/AsOption.php +++ b/src/Attribute/AsOption.php @@ -12,7 +12,7 @@ class AsOption extends AsCommandArgument public function __construct( ?string $name = null, public readonly string|array|null $shortcut = null, - public readonly int|null $mode = null, + public readonly ?int $mode = null, public readonly string $description = '', public readonly array $suggestedValues = [], ) { diff --git a/src/Attribute/AsTask.php b/src/Attribute/AsTask.php index 391bcae1..e681d0a1 100644 --- a/src/Attribute/AsTask.php +++ b/src/Attribute/AsTask.php @@ -11,7 +11,7 @@ class AsTask */ public function __construct( public string $name = '', - public string|null $namespace = null, + public ?string $namespace = null, public string $description = '', public array $aliases = [], public array $onSignals = [], diff --git a/src/Context.php b/src/Context.php index c34fbd12..a1b4c837 100644 --- a/src/Context.php +++ b/src/Context.php @@ -17,7 +17,7 @@ public function __construct( ?string $currentDirectory = null, public readonly bool $tty = false, public readonly bool $pty = true, - public readonly float|null $timeout = null, + public readonly ?float $timeout = null, public readonly bool $quiet = false, public readonly bool $allowFailure = false, public readonly bool $notify = false, @@ -132,7 +132,7 @@ public function withPty(bool $pty = true): self ); } - public function withTimeout(float|null $timeout): self + public function withTimeout(?float $timeout): self { return new self( $this->data, diff --git a/src/SectionOutput.php b/src/SectionOutput.php index b3c0a24e..3a37a6a0 100644 --- a/src/SectionOutput.php +++ b/src/SectionOutput.php @@ -14,7 +14,7 @@ class SectionOutput private OutputInterface|ConsoleSectionOutput $consoleOutput; - private ConsoleOutput|null $mainOutput; + private ?ConsoleOutput $mainOutput; /** @var \SplObjectStorage */ private \SplObjectStorage $sections; diff --git a/tests/Examples/Generated/ArgsAnotherArgsTest.php b/tests/Examples/Generated/ArgsAnotherArgsTest.php index bae04fdb..de6feef7 100644 --- a/tests/Examples/Generated/ArgsAnotherArgsTest.php +++ b/tests/Examples/Generated/ArgsAnotherArgsTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['args:another-args', 'FIXME(required)', '--test2', 1]); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/ArgsArgsTest.php b/tests/Examples/Generated/ArgsArgsTest.php index 9c14a65a..21dce53b 100644 --- a/tests/Examples/Generated/ArgsArgsTest.php +++ b/tests/Examples/Generated/ArgsArgsTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['args:args', 'FIXME(word)', '--option', 'default value', '--dry-run']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/BarBarTest.php b/tests/Examples/Generated/BarBarTest.php index 193873c2..68acef83 100644 --- a/tests/Examples/Generated/BarBarTest.php +++ b/tests/Examples/Generated/BarBarTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['bar:bar']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/CacheComplexTest.php b/tests/Examples/Generated/CacheComplexTest.php index 9e053624..e1b00d24 100644 --- a/tests/Examples/Generated/CacheComplexTest.php +++ b/tests/Examples/Generated/CacheComplexTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['cache:complex']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/CacheSimpleTest.php b/tests/Examples/Generated/CacheSimpleTest.php index e25b9d37..3f4488d6 100644 --- a/tests/Examples/Generated/CacheSimpleTest.php +++ b/tests/Examples/Generated/CacheSimpleTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['cache:simple']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/ContextContextDoNotExistTest.php b/tests/Examples/Generated/ContextContextDoNotExistTest.php index fc453d44..7fa32ef8 100644 --- a/tests/Examples/Generated/ContextContextDoNotExistTest.php +++ b/tests/Examples/Generated/ContextContextDoNotExistTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['context:context', '--context', 'no_no_exist']); $this->assertSame(1, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/ContextContextDynamicTest.php b/tests/Examples/Generated/ContextContextDynamicTest.php index c144abcc..2f236142 100644 --- a/tests/Examples/Generated/ContextContextDynamicTest.php +++ b/tests/Examples/Generated/ContextContextDynamicTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['context:context', '--context', 'dynamic']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/ContextContextInfoForcedTest.php b/tests/Examples/Generated/ContextContextInfoForcedTest.php index e3a963a9..2b16bb40 100644 --- a/tests/Examples/Generated/ContextContextInfoForcedTest.php +++ b/tests/Examples/Generated/ContextContextInfoForcedTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['context:context-info-forced']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/ContextContextMyDefaultTest.php b/tests/Examples/Generated/ContextContextMyDefaultTest.php index 5a5be547..ed1a7a6c 100644 --- a/tests/Examples/Generated/ContextContextMyDefaultTest.php +++ b/tests/Examples/Generated/ContextContextMyDefaultTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['context:context', '--context', 'my_default', '-v']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/ContextContextPathTest.php b/tests/Examples/Generated/ContextContextPathTest.php index 21536ec6..93bd29f1 100644 --- a/tests/Examples/Generated/ContextContextPathTest.php +++ b/tests/Examples/Generated/ContextContextPathTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['context:context', '--context', 'path']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/ContextContextProductionTest.php b/tests/Examples/Generated/ContextContextProductionTest.php index e795e668..ee1a6312 100644 --- a/tests/Examples/Generated/ContextContextProductionTest.php +++ b/tests/Examples/Generated/ContextContextProductionTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['context:context', '--context', 'production']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/ContextContextRunTest.php b/tests/Examples/Generated/ContextContextRunTest.php index 5cb7286b..e76b05c9 100644 --- a/tests/Examples/Generated/ContextContextRunTest.php +++ b/tests/Examples/Generated/ContextContextRunTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['context:context', '--context', 'run']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/ContextContextTest.php b/tests/Examples/Generated/ContextContextTest.php index 2cb5749a..b6d3890f 100644 --- a/tests/Examples/Generated/ContextContextTest.php +++ b/tests/Examples/Generated/ContextContextTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['context:context']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/ContextContextWithTest.php b/tests/Examples/Generated/ContextContextWithTest.php index 9deab6e1..6a35d1ee 100644 --- a/tests/Examples/Generated/ContextContextWithTest.php +++ b/tests/Examples/Generated/ContextContextWithTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['context:context-with']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/EnabledInProduction.php b/tests/Examples/Generated/EnabledInProduction.php index e26f6bb4..a97440bc 100644 --- a/tests/Examples/Generated/EnabledInProduction.php +++ b/tests/Examples/Generated/EnabledInProduction.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['enabled:hello', '--context', 'production']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/EnvEnvTest.php b/tests/Examples/Generated/EnvEnvTest.php index 4bbdf384..b539af3d 100644 --- a/tests/Examples/Generated/EnvEnvTest.php +++ b/tests/Examples/Generated/EnvEnvTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['env:env']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/EventListenerMyTaskTest.php b/tests/Examples/Generated/EventListenerMyTaskTest.php index e3db3435..0bc5dfe1 100644 --- a/tests/Examples/Generated/EventListenerMyTaskTest.php +++ b/tests/Examples/Generated/EventListenerMyTaskTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['event-listener:my-task']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/FailureAllowFailureTest.php b/tests/Examples/Generated/FailureAllowFailureTest.php index 0604db5c..463ec777 100644 --- a/tests/Examples/Generated/FailureAllowFailureTest.php +++ b/tests/Examples/Generated/FailureAllowFailureTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['failure:allow-failure']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/FailureFailureTest.php b/tests/Examples/Generated/FailureFailureTest.php index 9527b4bd..ba20afdd 100644 --- a/tests/Examples/Generated/FailureFailureTest.php +++ b/tests/Examples/Generated/FailureFailureTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['failure:failure']); $this->assertSame(1, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/FilesystemFilesystemTest.php b/tests/Examples/Generated/FilesystemFilesystemTest.php index f36727d8..42a13018 100644 --- a/tests/Examples/Generated/FilesystemFilesystemTest.php +++ b/tests/Examples/Generated/FilesystemFilesystemTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['filesystem:filesystem']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/FilesystemFindTest.php b/tests/Examples/Generated/FilesystemFindTest.php index 9972dad4..9f7d1ace 100644 --- a/tests/Examples/Generated/FilesystemFindTest.php +++ b/tests/Examples/Generated/FilesystemFindTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['filesystem:find']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/FooBarTest.php b/tests/Examples/Generated/FooBarTest.php index e15b30be..84c7b7ed 100644 --- a/tests/Examples/Generated/FooBarTest.php +++ b/tests/Examples/Generated/FooBarTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['foo:bar']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/FooFooTest.php b/tests/Examples/Generated/FooFooTest.php index 00610096..3266e44d 100644 --- a/tests/Examples/Generated/FooFooTest.php +++ b/tests/Examples/Generated/FooFooTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['foo:foo']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/HelloTest.php b/tests/Examples/Generated/HelloTest.php index 0905d4cb..49e4e85f 100644 --- a/tests/Examples/Generated/HelloTest.php +++ b/tests/Examples/Generated/HelloTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['hello']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/HttpRequestTest.php b/tests/Examples/Generated/HttpRequestTest.php index 62cb77d1..42878ec1 100644 --- a/tests/Examples/Generated/HttpRequestTest.php +++ b/tests/Examples/Generated/HttpRequestTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['http-request']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/ListTest.php b/tests/Examples/Generated/ListTest.php index 41ca18d3..4746bdc5 100644 --- a/tests/Examples/Generated/ListTest.php +++ b/tests/Examples/Generated/ListTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['list', '--raw', '--format', 'txt', '--short']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/NewProjectInitTest.php b/tests/Examples/Generated/NewProjectInitTest.php index 8e861631..41f5526a 100644 --- a/tests/Examples/Generated/NewProjectInitTest.php +++ b/tests/Examples/Generated/NewProjectInitTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['init'], '/tmp'); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/NewProjectTest.php b/tests/Examples/Generated/NewProjectTest.php index 11474bc9..546ef099 100644 --- a/tests/Examples/Generated/NewProjectTest.php +++ b/tests/Examples/Generated/NewProjectTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask([], '/tmp'); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/NoConfigCompletionTest.php b/tests/Examples/Generated/NoConfigCompletionTest.php index 3fa316e5..e4fe14d9 100644 --- a/tests/Examples/Generated/NoConfigCompletionTest.php +++ b/tests/Examples/Generated/NoConfigCompletionTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['completion', 'bash'], '/tmp'); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/NoConfigUnknownTest.php b/tests/Examples/Generated/NoConfigUnknownTest.php index 589ecc84..5a666621 100644 --- a/tests/Examples/Generated/NoConfigUnknownTest.php +++ b/tests/Examples/Generated/NoConfigUnknownTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['unknown:task'], '/tmp'); $this->assertSame(1, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/NoConfigUnknownWithArgsTest.php b/tests/Examples/Generated/NoConfigUnknownWithArgsTest.php index 18813946..633b827f 100644 --- a/tests/Examples/Generated/NoConfigUnknownWithArgsTest.php +++ b/tests/Examples/Generated/NoConfigUnknownWithArgsTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['unknown:task', 'toto', '--foo', 1], '/tmp'); $this->assertSame(1, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/NoNamespaceTest.php b/tests/Examples/Generated/NoNamespaceTest.php index f438bb6e..b8e6c443 100644 --- a/tests/Examples/Generated/NoNamespaceTest.php +++ b/tests/Examples/Generated/NoNamespaceTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['no-namespace']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/NotRenameRenamedTest.php b/tests/Examples/Generated/NotRenameRenamedTest.php index 4ac92e3b..8a47da27 100644 --- a/tests/Examples/Generated/NotRenameRenamedTest.php +++ b/tests/Examples/Generated/NotRenameRenamedTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['not-rename:renamed']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/NotifyNotifyOnFinishTest.php b/tests/Examples/Generated/NotifyNotifyOnFinishTest.php index 1b8014ce..44d2ee3d 100644 --- a/tests/Examples/Generated/NotifyNotifyOnFinishTest.php +++ b/tests/Examples/Generated/NotifyNotifyOnFinishTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['notify:notify-on-finish']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/NotifySendNotifyTest.php b/tests/Examples/Generated/NotifySendNotifyTest.php index c0413c81..d9e7561b 100644 --- a/tests/Examples/Generated/NotifySendNotifyTest.php +++ b/tests/Examples/Generated/NotifySendNotifyTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['notify:send-notify']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/OutputOutputTest.php b/tests/Examples/Generated/OutputOutputTest.php index 002ed16b..befd8d1d 100644 --- a/tests/Examples/Generated/OutputOutputTest.php +++ b/tests/Examples/Generated/OutputOutputTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['output:output']); $this->assertSame(1, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/ParallelExceptionTest.php b/tests/Examples/Generated/ParallelExceptionTest.php index 62324cd2..f80972c9 100644 --- a/tests/Examples/Generated/ParallelExceptionTest.php +++ b/tests/Examples/Generated/ParallelExceptionTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['parallel:exception']); $this->assertSame(1, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/ParallelSleepTest.php b/tests/Examples/Generated/ParallelSleepTest.php index b8f935f5..78d9734e 100644 --- a/tests/Examples/Generated/ParallelSleepTest.php +++ b/tests/Examples/Generated/ParallelSleepTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['parallel:sleep', '--sleep5', '0', '--sleep7', '0', '--sleep10', '0']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/QuietQuietTest.php b/tests/Examples/Generated/QuietQuietTest.php index 68755fbc..9b3429b0 100644 --- a/tests/Examples/Generated/QuietQuietTest.php +++ b/tests/Examples/Generated/QuietQuietTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['quiet:quiet']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/RunTestFileTest.php b/tests/Examples/Generated/RunTestFileTest.php index 4411daa0..92a560c9 100644 --- a/tests/Examples/Generated/RunTestFileTest.php +++ b/tests/Examples/Generated/RunTestFileTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['run:test-file']); $this->assertSame(1, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/RunVariablesTest.php b/tests/Examples/Generated/RunVariablesTest.php index 3e8ecb16..3040d6d6 100644 --- a/tests/Examples/Generated/RunVariablesTest.php +++ b/tests/Examples/Generated/RunVariablesTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['run:variables']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/RunWhoamiTest.php b/tests/Examples/Generated/RunWhoamiTest.php index ee5674d1..a10ca5db 100644 --- a/tests/Examples/Generated/RunWhoamiTest.php +++ b/tests/Examples/Generated/RunWhoamiTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['run:whoami']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/RunWithProcessHelperTest.php b/tests/Examples/Generated/RunWithProcessHelperTest.php index 5824c203..adba3b02 100644 --- a/tests/Examples/Generated/RunWithProcessHelperTest.php +++ b/tests/Examples/Generated/RunWithProcessHelperTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['run:with-process-helper']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/ShellBashTest.php b/tests/Examples/Generated/ShellBashTest.php index d65e7af2..8c9e8f0d 100644 --- a/tests/Examples/Generated/ShellBashTest.php +++ b/tests/Examples/Generated/ShellBashTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['shell:bash']); $this->assertSame(1, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/ShellShTest.php b/tests/Examples/Generated/ShellShTest.php index 877d9394..72a51df1 100644 --- a/tests/Examples/Generated/ShellShTest.php +++ b/tests/Examples/Generated/ShellShTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['shell:sh']); $this->assertSame(1, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/SignalSigusr2Test.php b/tests/Examples/Generated/SignalSigusr2Test.php index 59fcd5d6..718e5bf3 100644 --- a/tests/Examples/Generated/SignalSigusr2Test.php +++ b/tests/Examples/Generated/SignalSigusr2Test.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['signal:sigusr2']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/SymfonyGreetTest.php b/tests/Examples/Generated/SymfonyGreetTest.php index f1a5f137..de464d68 100644 --- a/tests/Examples/Generated/SymfonyGreetTest.php +++ b/tests/Examples/Generated/SymfonyGreetTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['symfony:greet', 'FIXME(who)', '--french', 'FIXME', '--punctuation', '!']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/SymfonyHelloTest.php b/tests/Examples/Generated/SymfonyHelloTest.php index 703f1894..9e28df99 100644 --- a/tests/Examples/Generated/SymfonyHelloTest.php +++ b/tests/Examples/Generated/SymfonyHelloTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['symfony:hello']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/VersionGuardMinVersionCheckFailTest.php b/tests/Examples/Generated/VersionGuardMinVersionCheckFailTest.php index 1ad88d14..a03230f2 100644 --- a/tests/Examples/Generated/VersionGuardMinVersionCheckFailTest.php +++ b/tests/Examples/Generated/VersionGuardMinVersionCheckFailTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['version-guard:min-version-check-fail']); $this->assertSame(1, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/VersionGuardMinVersionCheckTest.php b/tests/Examples/Generated/VersionGuardMinVersionCheckTest.php index d136d870..fd27ab29 100644 --- a/tests/Examples/Generated/VersionGuardMinVersionCheckTest.php +++ b/tests/Examples/Generated/VersionGuardMinVersionCheckTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['version-guard:min-version-check']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/WaitForCustomWaitForTaskTest.php b/tests/Examples/Generated/WaitForCustomWaitForTaskTest.php index 8025ab34..37e23285 100644 --- a/tests/Examples/Generated/WaitForCustomWaitForTaskTest.php +++ b/tests/Examples/Generated/WaitForCustomWaitForTaskTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['wait-for:custom-wait-for-task', '--thing', 'foobar']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/WaitForWaitForDockerContainerTaskTest.php b/tests/Examples/Generated/WaitForWaitForDockerContainerTaskTest.php index 439b73b3..d4ae16eb 100644 --- a/tests/Examples/Generated/WaitForWaitForDockerContainerTaskTest.php +++ b/tests/Examples/Generated/WaitForWaitForDockerContainerTaskTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['wait-for:wait-for-docker-container-task']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/WaitForWaitForPortTaskTest.php b/tests/Examples/Generated/WaitForWaitForPortTaskTest.php index 005a1fa0..614e45bf 100644 --- a/tests/Examples/Generated/WaitForWaitForPortTaskTest.php +++ b/tests/Examples/Generated/WaitForWaitForPortTaskTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['wait-for:wait-for-port-task']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/WaitForWaitForUrlTaskTest.php b/tests/Examples/Generated/WaitForWaitForUrlTaskTest.php index f58413f7..71e65fa2 100644 --- a/tests/Examples/Generated/WaitForWaitForUrlTaskTest.php +++ b/tests/Examples/Generated/WaitForWaitForUrlTaskTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['wait-for:wait-for-url-task']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/WaitForWaitForUrlWithSpecificResponseContentAndStatusTest.php b/tests/Examples/Generated/WaitForWaitForUrlWithSpecificResponseContentAndStatusTest.php index e42078ce..b09f7aa5 100644 --- a/tests/Examples/Generated/WaitForWaitForUrlWithSpecificResponseContentAndStatusTest.php +++ b/tests/Examples/Generated/WaitForWaitForUrlWithSpecificResponseContentAndStatusTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['wait-for:wait-for-url-with-specific-response-content-and-status']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/WaitForWaitForUrlWithStatusCodeOnlyTest.php b/tests/Examples/Generated/WaitForWaitForUrlWithStatusCodeOnlyTest.php index 32c9adb8..6b8b5662 100644 --- a/tests/Examples/Generated/WaitForWaitForUrlWithStatusCodeOnlyTest.php +++ b/tests/Examples/Generated/WaitForWaitForUrlWithStatusCodeOnlyTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['wait-for:wait-for-url-with-status-code-only']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/YamlDumpTest.php b/tests/Examples/Generated/YamlDumpTest.php index ac346164..16c7c71c 100644 --- a/tests/Examples/Generated/YamlDumpTest.php +++ b/tests/Examples/Generated/YamlDumpTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['yaml:dump']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); } diff --git a/tests/Examples/Generated/YamlParseTest.php b/tests/Examples/Generated/YamlParseTest.php index 29ffadf9..c194680e 100644 --- a/tests/Examples/Generated/YamlParseTest.php +++ b/tests/Examples/Generated/YamlParseTest.php @@ -12,9 +12,9 @@ public function test(): void $process = $this->runTask(['yaml:parse']); $this->assertSame(0, $process->getExitCode()); - $this->assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); + self::assertStringEqualsFile(__FILE__ . '.output.txt', $process->getOutput()); if (file_exists(__FILE__ . '.err.txt')) { - $this->assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); + self::assertStringEqualsFile(__FILE__ . '.err.txt', $process->getErrorOutput()); } else { $this->assertSame('', $process->getErrorOutput()); }