Skip to content

Commit 8e22832

Browse files
committed
Use line numbers for test IDs
Line numbers are stable even if we skip tests
1 parent 75addbb commit 8e22832

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,9 @@ public function data_external_html5lib_tests() {
8282
}
8383

8484
foreach ( self::parse_html5_dat_testfile( $test_dir . $entry ) as $k => $test ) {
85-
// 1-index our test cases for printing
86-
$case = $k + 1;
8785
// strip .dat extension from filename
8886
$test_suite = substr( $entry, 0, strlen( $entry ) - 4 );
89-
yield "{$test_suite}/case{$case} - line {$test[0]}" => array_slice( $test, 1 );
87+
yield "{$test_suite}/line{$test[0]}" => array_slice( $test, 1 );
9088
}
9189
}
9290
closedir( $handle );

0 commit comments

Comments
 (0)