Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
21 | class AbstractFactoryTest extends PHPUnit_Framework_TestCase |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * @var Handler |
||
26 | */ |
||
27 | protected $handler; |
||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $content; |
||
32 | |||
33 | protected function setUp(): void |
||
34 | { |
||
35 | $this->handler = new Handler(); |
||
36 | $this->content = 'Message'; |
||
37 | } |
||
38 | |||
39 | public function testJson() |
||
40 | { |
||
41 | $content = json_encode($this->content); |
||
42 | $this->assertEquals($this->handler->getMessage(new JsonFactory(), $this->content), $content); |
||
43 | } |
||
44 | |||
45 | public function testXML() |
||
52 | } |
||
53 | } |
||
54 |