Skip to content

Commit 105b4ab

Browse files
committed
Update tests for PHP-CS-Fixer
1 parent 877cc5b commit 105b4ab

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/PhpGitHooks/Module/PhpCsFixer/Tests/Behaviour/PhpCsFixerToolHandlerTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function itShouldThrowsException()
4444
$errors = null;
4545
foreach ($phpFiles as $file) {
4646
$errorText = 'ERROR';
47-
$this->shouldProcessPhpCsFixerTool($file, 'PSR0', $phpCsFixerOptions->value(), $errorText);
47+
$this->shouldProcessPhpCsFixerTool($file, '@PSR0', $phpCsFixerOptions->value(), $errorText);
4848
$errors .= $errorText;
4949
}
5050

@@ -78,7 +78,7 @@ public function itShouldWorksFine()
7878
$this->shouldWriteOutput($outputMessagePsr0->getMessage());
7979

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

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

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

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

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

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

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

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

111111
$this->shouldWriteLnOutput($outputMessageSymfony->getSuccessfulMessage());

0 commit comments

Comments
 (0)