| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class FormatterFactoryTest extends TestCase |
||
| 14 | { |
||
| 15 | public function testCreatesFormatter(): void |
||
| 16 | { |
||
| 17 | $formatter = $this->setUpFormatterFactory()->create('application/json'); |
||
| 18 | |||
| 19 | $this->assertInstanceOf(JsonFormatter::class, $formatter); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function testThrowsExceptionOnNotAcceptableFormat(): void |
||
| 27 | } |
||
| 28 | |||
| 29 | private function setUpFormatterFactory(): FormatterFactory |
||
| 32 | } |
||
| 33 | } |
||
| 34 |