Skip to content

Commit

Permalink
Generic/ByteOrderMark: improve test coverage
Browse files Browse the repository at this point in the history
This commit adds two more tests to cover the cases where the sniff is
trigerred but the file does not contain a BOM character.
  • Loading branch information
rodrigoprimo committed Jan 16, 2024
1 parent 4dbb27d commit ae9035a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php
// File with a byte order mark (BOM) character before the opening PHP tag.
echo 'foo';
?>
3 changes: 3 additions & 0 deletions src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.2.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php // File without a byte order mark (BOM) character before the opening PHP tag. ?>

<p>Some HTML</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>Some HTML at the beginning of the file but without a byte order mark (BOM) character</p>

0 comments on commit ae9035a

Please sign in to comment.