Skip to content

Commit 6bcf514

Browse files
author
Oleksandr Gorkun
committed
MC-17489: Require specific suffix for HTML binding
1 parent 1d89e6b commit 6bcf514

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dev/tests/static/framework/tests/unit/testsuite/Magento/Sniffs/Html/HtmlBindingSniffTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,13 @@ public function testProcess(string $fileUnderTest, string $expectedReportFile):
5151
[__DIR__ . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . $fileUnderTest]
5252
);
5353
// Remove the absolute path to the file from the output
54+
//phpcs:ignore
5455
$actual = preg_replace('/^.+\n/', '', ltrim(file_get_contents($reportFile)));
56+
//phpcs:ignore
5557
$expected = file_get_contents(
5658
__DIR__ . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . $expectedReportFile
5759
);
60+
//phpcs:ignore
5861
unlink($reportFile);
5962
$this->assertEquals(1, $result);
6063
$this->assertEquals($expected, $actual);

0 commit comments

Comments
 (0)