Skip to content

Commit

Permalink
Print nicer tests names
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Dec 19, 2023
1 parent b50e45d commit aec9690
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ public function data_external_html5lib_tests() {
}

foreach ( self::parse_html5_dat_testfile( $test_dir . $entry ) as $k => $test ) {
// 1-index our test cases for printing
$case = $k + 1;
yield "{$entry}/case {$case} - line {$test[0]}" => array_slice( $test, 1 );
// strip .dat extension from filename
$test_suite = substr( $entry, 0, strlen( $entry ) - 4 );
yield "{$test_suite}/case {$case} - line {$test[0]}" => array_slice( $test, 1 );
}
}
closedir( $handle );
Expand Down

0 comments on commit aec9690

Please sign in to comment.