summaryrefslogtreecommitdiff
path: root/test/HTML5/TestCase.php
diff options
context:
space:
mode:
authorMatt Butcher <[email protected]>2013-04-06 13:35:50 -0500
committerMatt Butcher <[email protected]>2013-04-06 13:35:50 -0500
commitf0aa87d02e8885825878781cd044c04c25e381ea (patch)
treea62dab3ba171f214d38902f557d47337a6713a98 /test/HTML5/TestCase.php
parent87f4c66f006e62789611b2128a90588761395586 (diff)
Converted example.php into a number of unit tests.
Diffstat (limited to 'test/HTML5/TestCase.php')
-rw-r--r--test/HTML5/TestCase.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/HTML5/TestCase.php b/test/HTML5/TestCase.php
index b5c18e0..8d3148e 100644
--- a/test/HTML5/TestCase.php
+++ b/test/HTML5/TestCase.php
@@ -5,8 +5,15 @@ require_once 'PHPUnit/Autoload.php';
require_once __DIR__ . '/../../vendor/autoload.php';
class TestCase extends \PHPUnit_Framework_TestCase {
+ const DOC_OPEN = '<!DOCTYPE html><html><head><title>test</title></head><body>';
+ const DOC_CLOSE = '</body></html>';
public function testFoo() {
// Placeholder. Why is PHPUnit emitting warnings about no tests?
}
+
+ protected function wrap($fragment) {
+ return self::DOC_OPEN . $fragment . self::DOC_CLOSE;
+ }
+
}