Changeset 52010 for trunk/tests/phpunit/tests/formatting/seemsUtf8.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/seemsUtf8.php
r51623 r52010 11 11 * @dataProvider utf8_strings 12 12 */ 13 function test_returns_true_for_utf8_strings( $utf8_string ) {13 public function test_returns_true_for_utf8_strings( $utf8_string ) { 14 14 // From http://www.i18nguy.com/unicode-example.html 15 15 $this->assertTrue( seems_utf8( $utf8_string ) ); 16 16 } 17 17 18 function utf8_strings() {18 public function utf8_strings() { 19 19 $utf8_strings = file( DIR_TESTDATA . '/formatting/utf-8/utf-8.txt' ); 20 20 foreach ( $utf8_strings as &$string ) { … … 28 28 * @dataProvider big5_strings 29 29 */ 30 function test_returns_false_for_non_utf8_strings( $big5_string ) {30 public function test_returns_false_for_non_utf8_strings( $big5_string ) { 31 31 $this->assertFalse( seems_utf8( $big5_string ) ); 32 32 } 33 33 34 function big5_strings() {34 public function big5_strings() { 35 35 // Get data from formatting/big5.txt. 36 36 $big5_strings = file( DIR_TESTDATA . '/formatting/big5.txt' );
Note: See TracChangeset
for help on using the changeset viewer.