summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTechnosophos <[email protected]>2013-04-10 11:53:31 -0500
committerTechnosophos <[email protected]>2013-04-10 11:53:31 -0500
commitfe956dc6bdbf3e71336bbff250ddff7f370e1f93 (patch)
tree6016a58ba29712c545af68e95de2a6699b606ba3
parentee379d29a15560ba9b44d2fd3629f81d217f7d31 (diff)
Fixed tokenizer test #1.
-rw-r--r--test/HTML5/Parser/EventStack.php3
-rw-r--r--test/HTML5/Parser/TokenizerTest.php3
2 files changed, 3 insertions, 3 deletions
diff --git a/test/HTML5/Parser/EventStack.php b/test/HTML5/Parser/EventStack.php
index 6f5576e..213d893 100644
--- a/test/HTML5/Parser/EventStack.php
+++ b/test/HTML5/Parser/EventStack.php
@@ -1,6 +1,5 @@
<?php
namespace HTML5\Parser;
-require __DIR__ . '/../TestCase.php';
class EventStack implements EventHandler {
protected $stack;
@@ -27,7 +26,7 @@ class EventStack implements EventHandler {
);
}
- public function doctype($name, $publicId, $systemID, $quirks) {
+ public function doctype($name, $publicId, $systemID, $quirks = FALSE) {
$args = func_get_args();
$this->store('doctype', $args);
}
diff --git a/test/HTML5/Parser/TokenizerTest.php b/test/HTML5/Parser/TokenizerTest.php
index 944d980..d10c683 100644
--- a/test/HTML5/Parser/TokenizerTest.php
+++ b/test/HTML5/Parser/TokenizerTest.php
@@ -1,8 +1,9 @@
<?php
namespace HTML5\Parser;
require __DIR__ . '/../TestCase.php';
+require 'EventStack.php';
-class TokenizerTest extends TestCase {
+class TokenizerTest extends \HTML5\Tests\TestCase {
protected function createTokenizer($string) {
$eventHandler = new EventStack();
$stream = new StringInputStream($string);