summaryrefslogtreecommitdiff
path: root/test/HTML5/TestCase.php
blob: 2f220b1935e81db70ca9a650e61ae2b183087fc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?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 testFoo()
    {
        // Placeholder. Why is PHPUnit emitting warnings about no tests?
    }

    public function getInstance(array $options = array())
    {
        return new HTML5($options);
    }

    protected function wrap($fragment)
    {
        return self::DOC_OPEN . $fragment . self::DOC_CLOSE;
    }
}