Code Duplication    Length = 9-10 lines in 2 locations

test/ScopeTest.php 2 locations

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