Code Duplication    Length = 9-10 lines in 2 locations

test/ScopeTest.php 2 locations

@@ 34-42 (lines=9) @@
31
        $this->assertInstanceOf('League\Fractal\Scope', $childScope);
32
    }
33
34
    public function testGetManager()
35
    {
36
        $resource = new Item(['foo' => 'bar'], function () {
37
        });
38
39
        $scope = new Scope(new Manager(), $resource, 'book');
40
41
        $this->assertInstanceOf('League\Fractal\Manager', $scope->getManager());
42
    }
43
44
    public function testGetResource()
45
    {
@@ 44-53 (lines=10) @@
41
        $this->assertInstanceOf('League\Fractal\Manager', $scope->getManager());
42
    }
43
44
    public function testGetResource()
45
    {
46
        $resource = new Item(['foo' => 'bar'], function () {
47
        });
48
49
        $scope = new Scope(new Manager(), $resource, 'book');
50
51
        $this->assertInstanceOf('League\Fractal\Resource\ResourceAbstract', $scope->getResource());
52
        $this->assertInstanceOf('League\Fractal\Resource\Item', $scope->getResource());
53
    }
54
55
    /**
56
     * @covers \League\Fractal\Scope::toArray