Changeset 52010 for trunk/tests/phpunit/tests/formatting/utf8UriEncode.php
- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/utf8UriEncode.php
r51623 r52010 12 12 * @dataProvider data 13 13 */ 14 function test_percent_encodes_non_reserved_characters( $utf8, $urlencoded ) {14 public function test_percent_encodes_non_reserved_characters( $utf8, $urlencoded ) { 15 15 $this->assertSame( $urlencoded, utf8_uri_encode( $utf8 ) ); 16 16 } … … 19 19 * @dataProvider data 20 20 */ 21 function test_output_is_not_longer_than_optional_length_argument( $utf8, $unused_for_this_test ) {21 public function test_output_is_not_longer_than_optional_length_argument( $utf8, $unused_for_this_test ) { 22 22 $max_length = 30; 23 23 $this->assertTrue( strlen( utf8_uri_encode( $utf8, $max_length ) ) <= $max_length ); 24 24 } 25 25 26 function data() {26 public function data() { 27 27 $utf8_urls = file( DIR_TESTDATA . '/formatting/utf-8/utf-8.txt' ); 28 28 $urlencoded = file( DIR_TESTDATA . '/formatting/utf-8/urlencoded.txt' );
Note: See TracChangeset
for help on using the changeset viewer.