Changeset 55562 for trunk/tests/phpunit/tests/formatting/seemsUtf8.php
- Timestamp:
- 03/19/2023 12:03:30 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/seemsUtf8.php
r53562 r55562 11 11 * `seems_utf8` returns true for utf-8 strings, false otherwise. 12 12 * 13 * @dataProvider utf8_strings13 * @dataProvider data_seems_utf8_returns_true_for_utf8_strings 14 14 */ 15 public function test_ returns_true_for_utf8_strings( $utf8_string ) {15 public function test_seems_utf8_returns_true_for_utf8_strings( $utf8_string ) { 16 16 // From http://www.i18nguy.com/unicode-example.html 17 17 $this->assertTrue( seems_utf8( $utf8_string ) ); 18 18 } 19 19 20 public function utf8_strings() {20 public function data_seems_utf8_returns_true_for_utf8_strings() { 21 21 $utf8_strings = file( DIR_TESTDATA . '/formatting/utf-8/utf-8.txt' ); 22 22 foreach ( $utf8_strings as &$string ) { … … 28 28 29 29 /** 30 * @dataProvider big5_strings30 * @dataProvider data_seems_utf8_returns_false_for_non_utf8_strings 31 31 */ 32 public function test_ returns_false_for_non_utf8_strings( $big5_string ) {32 public function test_seems_utf8_returns_false_for_non_utf8_strings( $big5_string ) { 33 33 $this->assertFalse( seems_utf8( $big5_string ) ); 34 34 } 35 35 36 public function big5_strings() {36 public function data_seems_utf8_returns_false_for_non_utf8_strings() { 37 37 // Get data from formatting/big5.txt. 38 38 $big5_strings = file( DIR_TESTDATA . '/formatting/big5.txt' );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)