Skip to content

Commit

Permalink
Update tests for PHP-CS-Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarynich committed Sep 19, 2018
1 parent 877cc5b commit 105b4ab
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function itShouldThrowsException()
$errors = null;
foreach ($phpFiles as $file) {
$errorText = 'ERROR';
$this->shouldProcessPhpCsFixerTool($file, 'PSR0', $phpCsFixerOptions->value(), $errorText);
$this->shouldProcessPhpCsFixerTool($file, '@PSR0', $phpCsFixerOptions->value(), $errorText);
$errors .= $errorText;
}

Expand Down Expand Up @@ -78,7 +78,7 @@ public function itShouldWorksFine()
$this->shouldWriteOutput($outputMessagePsr0->getMessage());

foreach ($phpFiles as $file) {
$this->shouldProcessPhpCsFixerTool($file, 'PSR0', $phpCsFixerOptions->value(), null);
$this->shouldProcessPhpCsFixerTool($file, '@PSR0', $phpCsFixerOptions->value(), null);
}

$this->shouldWriteLnOutput($outputMessagePsr0->getSuccessfulMessage());
Expand All @@ -87,7 +87,7 @@ public function itShouldWorksFine()
$this->shouldWriteOutput($outputMessagePsr1->getMessage());

foreach ($phpFiles as $file) {
$this->shouldProcessPhpCsFixerTool($file, 'PSR1', $phpCsFixerOptions->value(), null);
$this->shouldProcessPhpCsFixerTool($file, '@PSR1', $phpCsFixerOptions->value(), null);
}

$this->shouldWriteLnOutput($outputMessagePsr1->getSuccessfulMessage());
Expand All @@ -96,16 +96,16 @@ public function itShouldWorksFine()
$this->shouldWriteOutput($outputMessagePsr2->getMessage());

foreach ($phpFiles as $file) {
$this->shouldProcessPhpCsFixerTool($file, 'PSR2', $phpCsFixerOptions->value(), null);
$this->shouldProcessPhpCsFixerTool($file, '@PSR2', $phpCsFixerOptions->value(), null);
}

$this->shouldWriteLnOutput($outputMessagePsr2->getSuccessfulMessage());

$outputMessageSymfony = new PreCommitOutputWriter('Checking SYMFONY code style with PHP-CS-FIXER');
$outputMessageSymfony = new PreCommitOutputWriter('Checking Symfony code style with PHP-CS-FIXER');
$this->shouldWriteOutput($outputMessageSymfony->getMessage());

foreach ($phpFiles as $file) {
$this->shouldProcessPhpCsFixerTool($file, 'SYMFONY', $phpCsFixerOptions->value(), null);
$this->shouldProcessPhpCsFixerTool($file, '@Symfony', $phpCsFixerOptions->value(), null);
}

$this->shouldWriteLnOutput($outputMessageSymfony->getSuccessfulMessage());
Expand Down

0 comments on commit 105b4ab

Please sign in to comment.