Code Duplication    Length = 7-7 lines in 3 locations

test/unit/Container/ImmutableContainerTest.php 1 location

@@ 17-23 (lines=7) @@
14
        $this->assertInstanceOf('Serializable', $cont);
15
    }
16
17
    public function testConstructor()
18
    {
19
        $params = ['foo' => 'a', 'bar' => 'b', 'baz' => 'c'];
20
        $cont = new ImmutableContainer($params);
21
22
        $this->assertEquals($params, $cont->getAll());
23
    }
24
25
    public function testAdd()
26
    {

test/unit/Container/ImmutableFlatContainerTest.php 1 location

@@ 17-23 (lines=7) @@
14
        $this->assertInstanceOf('Serializable', $cont);
15
    }
16
17
    public function testConstructor()
18
    {
19
        $params = ['foo' => 'a', 'bar' => 'b', 'baz' => 'c'];
20
        $cont = new ImmutableFlatContainer($params);
21
22
        $this->assertEquals($params, $cont->getAll());
23
    }
24
25
    public function testAdd()
26
    {

test/unit/Container/ContainerTest.php 1 location

@@ 21-27 (lines=7) @@
18
        $this->assertInstanceOf(ArrayAccess::class, $cont);
19
    }
20
21
    public function testConstructor()
22
    {
23
        $params = ['foo' => 'a', 'bar' => 'b', 'baz' => 'c'];
24
        $cont = new Container($params);
25
26
        $this->assertEquals($params, $cont->getAll());
27
    }
28
29
    public function testAdd()
30
    {