Completed
Push — master ( 8796f9...232efd )
by
unknown
02:43
created

FormatTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2
1
<?php
2
3
namespace tests\MediaMonks\RestApi\Request;
4
5
use MediaMonks\RestApi\Request\Format;
6
7
class FormatTest extends \PHPUnit_Framework_TestCase
8
{
9
    public function testDefaultFormatIsJson()
10
    {
11
        $this->assertEquals('json', Format::getDefault());
12
    }
13
14
    public function testAvailableFormats()
15
    {
16
        $availableFormats = Format::getAvailable();
17
        $this->assertCount(2, $availableFormats);
18
        $this->assertContains('json', $availableFormats);
19
        $this->assertContains('xml', $availableFormats);
20
    }
21
}
22