Changeset 61342
- Timestamp:
- 12/01/2025 11:42:12 PM (12 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/block-processor/wpBlockProcessor-BlockProcessing.php
r61294 r61342 50 50 51 51 $processor = new WP_Block_Processor( $html ); 52 $n = new NumberFormatter( 'en-US', NumberFormatter::ORDINAL );53 52 54 53 for ( $i = 0; $i < $max_depth; $i++ ) { 54 $nth = $i + 1; 55 55 56 $this->assertTrue( 56 57 $processor->next_delimiter(), 57 "Should have found {$n->format( $i + 1 )} opening delimiter: check test setup."58 "Should have found opening delimiter #{$nth}: check test setup." 58 59 ); 59 60 … … 61 62 $i + 1, 62 63 $processor->get_depth(), 63 "Should have identified the proper depth of the {$n->format( $i + 1 )} opening delimiter."64 "Should have identified the proper depth of opening delimiter #{$nth}." 64 65 ); 65 66 } 66 67 67 68 for ( $i = 0; $i < $max_depth; $i++ ) { 69 $nth = $i + 1; 70 68 71 $this->assertTrue( 69 72 $processor->next_delimiter(), 70 "Should have found {$n->format( $i + 1 )} closing delimiter: check test setup."73 "Should have found closing delimiter #{$nth}: check test setup." 71 74 ); 72 75 … … 74 77 $max_depth - $i - 1, 75 78 $processor->get_depth(), 76 "Should have identified the proper depth of the {$n->format( $i + 1 )} closing delimiter."79 "Should have identified the proper depth of closing delimiter #{$nth}." 77 80 ); 78 81 }
Note: See TracChangeset
for help on using the changeset viewer.