File: TestCase.php

package info (click to toggle)
php-masterminds-html5 2.9.0%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 824 kB
  • sloc: php: 9,656; makefile: 21
file content (23 lines) | stat: -rw-r--r-- 500 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
    }
}