@@ -27,7 +27,7 @@ public function test_encoding_iso88591_as_UTF8()
27
27
28
28
$ this ->assertTrue ($ encoding ->detectEncoding (__DIR__ .'/files/iso88591.txt ' , 'UTF-8,ISO-8859-1,WINDOWS-1252 ' ) == 'ISO-8859-1 ' );
29
29
$ this ->assertTrue ($ encoding ->encodeFile (__DIR__ .'/files/iso88591.txt ' , 'UTF-8 ' , 'UTF-8,ISO-8859-1,WINDOWS-1252 ' ));
30
- $ this ->assertTrue ($ encoding ->checkEncoding (__DIR__ .'/files/iso88591.txt ' ,'UTF-8 ' ));
30
+ $ this ->assertTrue ($ encoding ->checkEncoding (__DIR__ .'/files/iso88591.txt ' , 'UTF-8 ' ));
31
31
32
32
$ this ->close ();
33
33
}
@@ -38,7 +38,7 @@ public function test_encoding_UTF8_as_UTF8()
38
38
$ encoding = new Encoding ();
39
39
$ this ->assertTrue ($ encoding ->detectEncoding ('tests/files/utf8.txt ' , 'UTF-8,ISO-8859-1,WINDOWS-1252 ' ) == 'UTF-8 ' );
40
40
$ this ->assertTrue ($ result = $ encoding ->encodeFile ('tests/files/utf8.txt ' ));
41
- $ this ->assertTrue ($ encoding ->checkEncoding ('tests/files/utf8.txt ' ,'UTF-8 ' ));
41
+ $ this ->assertTrue ($ encoding ->checkEncoding ('tests/files/utf8.txt ' , 'UTF-8 ' ));
42
42
43
43
$ this ->close ();
44
44
}
@@ -49,7 +49,7 @@ public function test_encoding_file_not_exists()
49
49
$ encoding = new Encoding ();
50
50
$ this ->assertFalse ($ encoding ->detectEncoding ('tests/files/test.txt ' , 'UTF-8,ISO-8859-1,WINDOWS-1252 ' ) == 'UTF-8 ' );
51
51
$ this ->assertFalse ($ result = $ encoding ->encodeFile ('tests/files/test.txt ' ));
52
- $ this ->assertFalse ($ encoding ->checkEncoding ('tests/files/test.txt ' ,'UTF-8 ' ));
52
+ $ this ->assertFalse ($ encoding ->checkEncoding ('tests/files/test.txt ' , 'UTF-8 ' ));
53
53
54
54
$ this ->close ();
55
55
}
0 commit comments