1 | <?php |
||
27 | class HtmlResponseTest extends \PHPUnit_Framework_TestCase { |
||
28 | |||
29 | /** |
||
30 | * @dataProvider providesResponseData |
||
31 | * @param $content |
||
32 | * @param $filename |
||
33 | * @param $contentType |
||
34 | */ |
||
35 | public function testIt($content){ |
||
36 | |||
37 | $resp = new HtmlResponse($content); |
||
38 | $this->assertEquals($content, $resp->render()); |
||
39 | } |
||
40 | |||
41 | public function providesResponseData() { |
||
42 | return [ |
||
43 | ['1234567890'] |
||
44 | ]; |
||
45 | } |
||
46 | } |
||
47 |