- Timestamp:
- 11/30/2017 11:09:33 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/UrlEncodedToEntities.php
r31734 r42343 9 9 */ 10 10 function test_convert_urlencoded_to_entities( $u_urlencoded, $entity ) { 11 $this->assertEquals( $entity, preg_replace_callback( '/\%u([0-9A-F]{4,5})/', '_convert_urlencoded_to_entities', $u_urlencoded ), $entity );11 $this->assertEquals( $entity, preg_replace_callback( '/\%u([0-9A-F]{4,5})/', '_convert_urlencoded_to_entities', $u_urlencoded ), $entity ); 12 12 } 13 13 14 14 function data() { 15 $input = file( DIR_TESTDATA . '/formatting/utf-8/u-urlencoded.txt' );16 $output = file( DIR_TESTDATA . '/formatting/utf-8/entitized.txt' );15 $input = file( DIR_TESTDATA . '/formatting/utf-8/u-urlencoded.txt' ); 16 $output = file( DIR_TESTDATA . '/formatting/utf-8/entitized.txt' ); 17 17 $data_provided = array(); 18 18 foreach ( $input as $key => $value ) {
Note: See TracChangeset
for help on using the changeset viewer.