TestCase.php 616 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Masterminds\HTML5\Tests;
  3. use Masterminds\HTML5;
  4. use PHPUnit\Framework\TestCase as BaseTestCase;
  5. class TestCase extends BaseTestCase
  6. {
  7. const DOC_OPEN = '<!DOCTYPE html><html><head><title>test</title></head><body>';
  8. const DOC_CLOSE = '</body></html>';
  9. public function testFoo()
  10. {
  11. // Placeholder. Why is PHPUnit emitting warnings about no tests?
  12. }
  13. public function getInstance(array $options = array())
  14. {
  15. return new HTML5($options);
  16. }
  17. protected function wrap($fragment)
  18. {
  19. return self::DOC_OPEN . $fragment . self::DOC_CLOSE;
  20. }
  21. }