Skip to content

Commit 470b05f

Browse files
committed
Generic/ByteOrderMark: add UTF-16 BOM character tests
1 parent ae9035a commit 470b05f

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?php
2-
// File with a byte order mark (BOM) character before the opening PHP tag.
2+
// File with a UTF-8 byte order mark (BOM) character before the opening PHP tag.
33
echo 'foo';
44
?>
Binary file not shown.
Binary file not shown.

src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public function getErrorList($testFile='')
3434
{
3535
switch ($testFile) {
3636
case 'ByteOrderMarkUnitTest.1.inc':
37+
case 'ByteOrderMarkUnitTest.4.inc':
38+
case 'ByteOrderMarkUnitTest.5.inc':
3739
return [1 => 1];
3840

3941
default:

0 commit comments

Comments
 (0)