Skip to content

Commit

Permalink
Merge /WP_Filesystem_To_Post_Tree and /WP_Filesystem_Entity_Reader
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Jan 10, 2025
1 parent 295d2a6 commit 70691ac
Show file tree
Hide file tree
Showing 8 changed files with 573 additions and 540 deletions.
3 changes: 2 additions & 1 deletion packages/playground/data-liberation/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@
require_once __DIR__ . '/src/import/WP_Retry_Frontloading_Iterator.php';
require_once __DIR__ . '/src/entity-readers/WP_Entity_Reader.php';
require_once __DIR__ . '/src/entity-readers/WP_HTML_Entity_Reader.php';
require_once __DIR__ . '/src/entity-readers/WP_Filesystem_To_Post_Tree.php';
require_once __DIR__ . '/src/entity-readers/WP_Filesystem_Entity_Reader.php';

require_once __DIR__ . '/src/WP_Data_Liberation_HTML_Processor.php';

require_once __DIR__ . '/src/utf8_decoder.php';

// When running in Playground, the composer autoloader script sees CLI SAPI and
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/data-liberation/phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<file>tests/WPMarkupProcessorConsumerTests.php</file>
<file>tests/WPHTMLEntityReaderTests.php</file>
<file>tests/WPURLInTextProcessorTests.php</file>
<file>tests/WPFilesystemToPostTreeTests.php</file>
<file>tests/WPFilesystemEntityReaderTests.php</file>
<file>tests/WPBlockMarkupProcessorTests.php</file>
<file>tests/WPBlockMarkupUrlProcessorTests.php</file>
<file>tests/URLParserWHATWGComplianceTests.php</file>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,13 @@ public function skip_to_closer() {

return false;
}

public function get_string_index_after_current_token() {
$name = 'current_token';
$this->set_bookmark( $name );
$bookmark = $this->bookmarks[ '_' . $name ];
$this->release_bookmark( $name );
return $bookmark->start + $bookmark->length;
}

}
Loading

0 comments on commit 70691ac

Please sign in to comment.