summaryrefslogtreecommitdiff
path: root/vendor/masterminds/html5/test/HTML5/TestCase.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-12-13 20:00:46 +0300
committerAndrew Dolgov <[email protected]>2022-12-13 20:00:46 +0300
commit0226e0ca0dc70f9a0310b3eef045ee1c1e0ca3ac (patch)
tree254c0e880693c2636107308b5931951cfa501311 /vendor/masterminds/html5/test/HTML5/TestCase.php
split into a separate repo
Diffstat (limited to 'vendor/masterminds/html5/test/HTML5/TestCase.php')
-rw-r--r--vendor/masterminds/html5/test/HTML5/TestCase.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/masterminds/html5/test/HTML5/TestCase.php b/vendor/masterminds/html5/test/HTML5/TestCase.php
new file mode 100644
index 0000000..a25ae21
--- /dev/null
+++ b/vendor/masterminds/html5/test/HTML5/TestCase.php
@@ -0,0 +1,23 @@
+<?php
+
+namespace Masterminds\HTML5\Tests;
+
+use Masterminds\HTML5;
+use PHPUnit\Framework\TestCase as BaseTestCase;
+
+class TestCase extends BaseTestCase
+{
+ const DOC_OPEN = '<!DOCTYPE html><html><head><title>test</title></head><body>';
+
+ const DOC_CLOSE = '</body></html>';
+
+ public function getInstance(array $options = array())
+ {
+ return new HTML5($options);
+ }
+
+ protected function wrap($fragment)
+ {
+ return self::DOC_OPEN . $fragment . self::DOC_CLOSE;
+ }
+}