7 declare(strict_types=1);
23 'avoid-ids-errors.txt' 33 public function testProcess($fileUnderTest, $expectedReportFile)
35 $reportFile =
__DIR__ . DIRECTORY_SEPARATOR .
'_files' . DIRECTORY_SEPARATOR .
'phpcs_report.txt';
37 $codeSniffer = new \Magento\TestFramework\CodingStandard\Tool\CodeSniffer(
44 [
__DIR__ . DIRECTORY_SEPARATOR .
'_files' . DIRECTORY_SEPARATOR . $fileUnderTest]
49 __DIR__ . DIRECTORY_SEPARATOR .
'_files' . DIRECTORY_SEPARATOR . $expectedReportFile
52 $this->assertEquals(1,
$result);
53 $this->assertEquals($expected, $actual);
defined('TESTS_BP')||define('TESTS_BP' __DIR__
testProcess($fileUnderTest, $expectedReportFile)