Skip to content

Commit

Permalink
Use DIR_TESTDATA
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Jan 25, 2024
1 parent 968b567 commit a94d154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/phpunit/tests/html-api/wpHtmlProcessorHtml5lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function test_parse( $fragment_context, $html, $result ) {
* @return array[]
*/
public function data_external_html5lib_tests() {
$test_dir = __DIR__ . '/../../data/html5lib-tests/tree-construction/';
$test_dir = DIR_TESTDATA . '/html5lib-tests/tree-construction/';

$handle = opendir( $test_dir );
while ( false !== ( $entry = readdir( $handle ) ) ) {
Expand Down

0 comments on commit a94d154

Please sign in to comment.