Skip to content

Commit

Permalink
Fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
veewee committed Dec 2, 2020
1 parent 1cf6dfd commit b9dcb9e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/Unit/Scripts/ParallelScriptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ protected function setUp(): void
);
}


/** @test */
public function it_fails_if_there_are_not_tasks_specified(): void
{
Expand Down Expand Up @@ -90,7 +89,7 @@ public function it_can_successfully_run_scripts_in_parallel(): void
self::assertEquals(0, $result);

$output = $this->io->getOutput();
self::assertStringContainsString('Finished running: ' . PHP_EOL . 'task1', $output);
self::assertStringContainsString('Finished running: '.PHP_EOL.'task1', $output);
}

/** @test */
Expand All @@ -105,14 +104,13 @@ public function it_can_insuccessfully_run_scripts_in_parallel(): void
try {
($this->script)($this->createEvent(['task1', 'task2']));
} catch (ScriptExecutionException $exception) {

}

self::assertInstanceOf(ScriptExecutionException::class, $exception);

$output = $this->io->getOutput();
self::assertStringContainsString('Succesfully ran: ' . PHP_EOL . 'task2', $output);
self::assertStringContainsString('Failed running: ' . PHP_EOL . 'task1', $output);
self::assertStringContainsString('Succesfully ran: '.PHP_EOL.'task2', $output);
self::assertStringContainsString('Failed running: '.PHP_EOL.'task1', $output);
self::assertStringContainsString('Not all tasks could be executed successfully!', $output);
}

Expand Down

0 comments on commit b9dcb9e

Please sign in to comment.