diff options
author | Technosophos <[email protected]> | 2013-04-19 18:34:32 -0500 |
---|---|---|
committer | Technosophos <[email protected]> | 2013-04-19 18:34:32 -0500 |
commit | da188b7251d151ae56773d7b1a3bb88a774fbdf3 (patch) | |
tree | 1551b808e6aa405b901c0b0c1523ef74681505d1 | |
parent | 3abbd5f597060533118897889e05b104fa7597be (diff) |
Stubs for tree builder and tests.
-rw-r--r-- | src/HTML5/Parser/DOMTreeBuilder.php | 23 | ||||
-rw-r--r-- | test/HTML5/Parser/DOMTreeBuilderTest.php | 11 |
2 files changed, 34 insertions, 0 deletions
diff --git a/src/HTML5/Parser/DOMTreeBuilder.php b/src/HTML5/Parser/DOMTreeBuilder.php new file mode 100644 index 0000000..b0fbdfb --- /dev/null +++ b/src/HTML5/Parser/DOMTreeBuilder.php @@ -0,0 +1,23 @@ +<?php +namespace HTML5\Parser; + +class DOMTreeBuilder implements EventHandler { + public function doctype($name, $idType = 0, $id = NULL, $quirks = FALSE) { + } + public function startTag($name, $attributes = array(), $selfClosing = FALSE) { + } + public function endTag($name) { + } + public function comment($cdata) { + } + public function text($cdata) { + } + public function eof() { + } + public function parseError($msg, $line, $col) { + } + public function cdata($data) { + } + public function processingInstruction($name, $data = NULL) { + } +} diff --git a/test/HTML5/Parser/DOMTreeBuilderTest.php b/test/HTML5/Parser/DOMTreeBuilderTest.php new file mode 100644 index 0000000..6ffae75 --- /dev/null +++ b/test/HTML5/Parser/DOMTreeBuilderTest.php @@ -0,0 +1,11 @@ +<?php +/** + * @file + * Test the Scanner. This requires the InputStream tests are all good. + */ +namespace HTML5\Parser; + +require_once __DIR__ . '/../TestCase.php'; + +class DOMTreeParserTest extends \HTML5\Tests\TestCase { +} |