Changeset 42343 for trunk/tests/phpunit/tests/formatting/ent2ncr.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/ent2ncr.php
r42228 r42343 10 10 function test_converts_named_entities_to_numeric_character_references( $entity, $ncr ) { 11 11 $entity = '&' . $entity . ';'; 12 $ncr = '&#' . $ncr . ';';12 $ncr = '&#' . $ncr . ';'; 13 13 $this->assertEquals( $ncr, ent2ncr( $entity ), $entity ); 14 14 } … … 19 19 */ 20 20 function entities() { 21 $entities = file( DIR_TESTDATA . '/formatting/entities.txt' );21 $entities = file( DIR_TESTDATA . '/formatting/entities.txt' ); 22 22 $data_provided = array(); 23 23 foreach ( $entities as $line ) { 24 24 // comment 25 $commentpos = strpos( $line, "###");25 $commentpos = strpos( $line, '###' ); 26 26 if ( false !== $commentpos ) { 27 27 $line = trim( substr( $line, 0, $commentpos ) ); 28 if ( ! $line ) 28 if ( ! $line ) { 29 29 continue; 30 } 30 31 } 31 32 $data_provided[] = array_map( 'trim', explode( '|', $line ) );
Note: See TracChangeset
for help on using the changeset viewer.