-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
4dbb27d
commit ae9035a
Showing
3 changed files
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
3
src/Standards/Generic/Tests/Files/ByteOrderMarkUnitTest.2.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |