diff --git a/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.1.inc b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.1.inc new file mode 100644 index 0000000000..a50b622609 --- /dev/null +++ b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.1.inc @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.2.inc b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.2.inc new file mode 100644 index 0000000000..6d61f0e1e7 --- /dev/null +++ b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.2.inc @@ -0,0 +1,3 @@ + + +
Some HTML
diff --git a/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.3.inc b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.3.inc new file mode 100644 index 0000000000..ff1e2bf7d5 --- /dev/null +++ b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.3.inc @@ -0,0 +1 @@ +Some HTML at the beginning of an ANSI/iso-8859-1 encoded file without a byte order mark (BOM) character
diff --git a/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.4.inc b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.4.inc new file mode 100644 index 0000000000..312974a828 Binary files /dev/null and b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.4.inc differ diff --git a/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.5.inc b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.5.inc new file mode 100644 index 0000000000..7aea9550dd Binary files /dev/null and b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.5.inc differ diff --git a/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.inc b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.inc deleted file mode 100644 index dc3bf59670..0000000000 --- a/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.inc +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php index 3d80c618f6..c1c3e292e3 100644 --- a/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php +++ b/src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php @@ -26,11 +26,21 @@ final class ByteOrderMarkUnitTest extends AbstractSniffUnitTest * The key of the array should represent the line number and the value * should represent the number of errors that should occur on that line. * + * @param string $testFile The name of the file being tested. + * * @return array