diff options
Diffstat (limited to 'plugins/af_readability/vendor/masterminds/html5/test/HTML5/TestCase.php')
-rw-r--r-- | plugins/af_readability/vendor/masterminds/html5/test/HTML5/TestCase.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/plugins/af_readability/vendor/masterminds/html5/test/HTML5/TestCase.php b/plugins/af_readability/vendor/masterminds/html5/test/HTML5/TestCase.php new file mode 100644 index 000000000..a25ae215c --- /dev/null +++ b/plugins/af_readability/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; + } +} |