Changeset 61529
- Timestamp:
- 01/26/2026 04:18:46 PM (3 days ago)
- Location:
- branches/6.9
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tests/phpunit/tests/block-processor/wpBlockProcessor-BlockProcessing.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.9
-
branches/6.9/tests/phpunit/tests/block-processor/wpBlockProcessor-BlockProcessing.php
r61296 r61529 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.