Changeset 30525 for trunk/tests/phpunit/tests/formatting/SeemsUtf8.php
- Timestamp:
- 11/22/2014 08:56:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/SeemsUtf8.php
r25379 r30525 11 11 * @dataProvider utf8_strings 12 12 */ 13 13 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 ) ); … … 29 29 */ 30 30 function test_returns_false_for_non_utf8_strings( $big5_string ) { 31 $this->markTestIncomplete( 'This test does not have any assertions.' ); 32 33 $big5 = $big5[0]; 34 $strings = array( 35 "abc", 36 "123", 37 $big5 38 ); 31 $this->assertFalse( seems_utf8( $big5_string ) ); 39 32 } 40 33 41 34 function big5_strings() { 42 35 // Get data from formatting/big5.txt 43 return array( array( 'incomplete' ) ); 36 $big5_strings = file( DIR_TESTDATA . '/formatting/big5.txt' ); 37 foreach ( $big5_strings as &$string ) { 38 $string = (array) trim( $string ); 39 } 40 unset( $string ); 41 return $big5_strings; 44 42 } 45 43 }
Note: See TracChangeset
for help on using the changeset viewer.