Skip to content

Commit ae9035a

Browse files
committed
Generic/ByteOrderMark: improve test coverage
This commit adds two more tests to cover the cases where the sniff is trigerred but the file does not contain a BOM character.
1 parent 4dbb27d commit ae9035a

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
<?php
2+
// File with a byte order mark (BOM) character before the opening PHP tag.
23
echo 'foo';
34
?>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php // File without a byte order mark (BOM) character before the opening PHP tag. ?>
2+
3+
<p>Some HTML</p>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<p>Some HTML at the beginning of the file but without a byte order mark (BOM) character</p>

0 commit comments

Comments
 (0)