Test Failed
Push — master ( 3e96d2...d4b731 )
by Dan
06:30
created

AbstractAdaptorTest::testGetOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Tests\Ds\Router\Adaptor;
4
5
use Ds\Router\Interfaces\AdaptorInterface;
6
use Ds\Router\Interfaces\SerializerInterface;
7
8
/**
9
 * Class AbstractAdaptorTest
10
 * @package Tests\Ds\Router\Adaptor
11
 */
12
class AbstractAdaptorTest extends \PHPUnit_Framework_TestCase
13
{
14
    /**
15
     * @var AdaptorInterface
16
     */
17
    public $adaptor;
18
19
    /**
20
     * @var \PHPUnit_Framework_MockObject_MockObject|SerializerInterface
21
     */
22
    public $serializer;
23
24
    /**
25
     *
26
     */
27
    public function setUp()
28
    {
29
        $this->serializer = $this->getMockBuilder(SerializerInterface::class)->getMock();
30
        $this->adaptor = new AbstractAdaptorMock($this->serializer);
31
    }
32
33
    /**
34
     *
35
     */
36
    public function testGetOptions()
37
    {
38
        $expected = [];
39
        $actual = $this->adaptor->getOptions();
40
        $this->assertEquals($expected, $actual);
41
    }
42
43
    /**
44
     *
45
     */
46
    public function testGetOption()
47
    {
48
        $expected = [];
49
        $actual = $this->adaptor->getOptions();
50
        $this->assertEquals($expected, $actual);
51
    }
52
53
    /**
54
     *
55
     */
56
    public function testWithOptions()
57
    {
58
        $expected = ['new' => 'options'];
59
        $this->adaptor->withOptions($expected);
60
        $actual = $this->adaptor->getOptions();
61
        $this->assertEquals($expected, $actual);
62
    }
63
}
64