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 Jan 16, 2024
1 parent 10dc753 commit b31c921
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 b31c921

Please sign in to comment.