Skip to content

Commit b4c5cf1

Browse files
julienfalquekeradus
authored andcommitted
Add test with binary file
1 parent 5839e88 commit b4c5cf1

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

tests/binary_file/files/file1.php

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
$foo = '';

tests/binary_file/files/file2.php

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
$foo = '
4+
line with spaces
5+
';

tests/binary_file/files/logo.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
File comes from [PHP-CS-Fixer/logo](https://github.com/PHP-CS-Fixer/logo).

tests/binary_file/files/logo.png

54.6 KB
Loading

tests/binary_file/test

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
--STATUS-CODE--
2+
3
3+
--OUTPUT--
4+
\e[97;41mTrailing whitespaces detected:\e[0m
5+
\e[0;31m - in \e[0;33mfile2.php\e[0;31m at line \e[0;33m4
6+
\e[0;31m>\e[0m line with spaces\e[41;1m \e[0m

0 commit comments

Comments
 (0)