diff options
author | Andrew Dolgov <[email protected]> | 2022-07-31 09:15:00 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-07-31 09:15:00 +0300 |
commit | 7187ab859db71fd706a6ea67587b21ad0fe588df (patch) | |
tree | 0c36632720ec06fb18dd999132fffdb55284fb8c /plugins/af_readability/vendor/masterminds/html5/test/HTML5/TestCase.php | |
parent | 4aefbd628e9a0e1eac58523904ad887b0635cda3 (diff) |
fork masterminds html5-php
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; + } +} |