| Total Complexity | 5 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class FormatsTest extends \PHPUnit\Framework\TestCase |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Formats |
||
| 12 | */ |
||
| 13 | protected $object; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Tears down the fixture, for example, closes a network connection. |
||
| 17 | * This method is called after a test is executed. |
||
| 18 | */ |
||
| 19 | protected function tearDown(): void |
||
| 20 | { |
||
| 21 | |||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @covers FlexiPeeHP\Formats::byContentType |
||
| 26 | */ |
||
| 27 | public function testByContentType() |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @covers FlexiPeeHP\Formats::bySuffix |
||
| 35 | */ |
||
| 36 | public function testBySuffix() |
||
| 37 | { |
||
| 38 | $suffixes = \FlexiPeeHP\Formats::bySuffix(); |
||
| 39 | $this->assertEquals('js', key($suffixes)); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @covers FlexiPeeHP\Formats::suffixToContentType |
||
| 44 | */ |
||
| 45 | public function testSuffixToContentType() |
||
| 46 | { |
||
| 47 | $this->assertEquals('application/pdf', |
||
| 48 | \FlexiPeeHP\Formats::suffixToContentType('pdf')); |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @covers FlexiPeeHP\Formats::contentTypeToSuffix |
||
| 53 | */ |
||
| 54 | public function testContentTypeToSuffix() |
||
| 58 | } |
||
| 59 | } |
||
| 60 |