From f0aa87d02e8885825878781cd044c04c25e381ea Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Sat, 6 Apr 2013 13:35:50 -0500 Subject: Converted example.php into a number of unit tests. --- test/HTML5/TestCase.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/HTML5/TestCase.php') 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 = 'test'; + const DOC_CLOSE = ''; public function testFoo() { // Placeholder. Why is PHPUnit emitting warnings about no tests? } + + protected function wrap($fragment) { + return self::DOC_OPEN . $fragment . self::DOC_CLOSE; + } + } -- cgit v1.2.3