Skip to content

Commit

Permalink
1-index test case numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Dec 19, 2023
1 parent 1e0077f commit 434c84f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public function data_external_html5lib_tests() {
}

foreach ( self::parse_html5_dat_testfile( $test_dir . $entry ) as $k => $test ) {
yield "{$entry}/case {$k} - line {$test[0]}" => array_slice( $test, 1 );
$case = $k + 1;
yield "{$entry}/case {$case} - line {$test[0]}" => array_slice( $test, 1 );
}
}
closedir( $handle );
Expand Down

0 comments on commit 434c84f

Please sign in to comment.