Skip to content

Commit e240bf7

Browse files
committed
Updated for new PHPCS API
1 parent 2bd5232 commit e240bf7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/Core/ErrorSuppressionTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function testSuppressFile()
132132

133133
// Process without suppression.
134134
$content = '<?php '.PHP_EOL.'//TODO: write some code';
135-
$file = $phpcs->processFile('noSuppressionTest.php', $content);
135+
$file = $phpcs->processFile('suppressionTest.php', $content);
136136

137137
$warnings = $file->getWarnings();
138138
$numWarnings = $file->getWarningCount();
@@ -141,7 +141,7 @@ public function testSuppressFile()
141141

142142
// Process with suppression.
143143
$content = '<?php '.PHP_EOL.'// @codingStandardsIgnoreFile'.PHP_EOL.'//TODO: write some code';
144-
$file = $phpcs->processFile('noSuppressionTest.php', $content);
144+
$file = $phpcs->processFile('suppressionTest.php', $content);
145145

146146
$warnings = $file->getWarnings();
147147
$numWarnings = $file->getWarningCount();
@@ -150,10 +150,7 @@ public function testSuppressFile()
150150

151151
// Process with a Doc Block suppression.
152152
$content = '<?php '.PHP_EOL.'/* @codingStandardsIgnoreFile */'.PHP_EOL.'//TODO: write some code';
153-
$phpcs->processFile('suppressionTest.php', $content);
154-
155-
$files = $phpcs->getFiles();
156-
$file = $files[1];
153+
$file = $phpcs->processFile('suppressionTest.php', $content);
157154

158155
$warnings = $file->getWarnings();
159156
$numWarnings = $file->getWarningCount();

0 commit comments

Comments
 (0)