Code Duplication    Length = 13-13 lines in 3 locations

tests/GraphNode/GraphEdgeTest.php 1 location

@@ 44-56 (lines=13) @@
41
        'previous' => 'https://graph.facebook.com/v7.12/998899/photos?pretty=0&limit=25&before=foo_before_cursor',
42
    ];
43
44
    protected function setUp()
45
    {
46
        $app = new Application('123', 'foo_app_secret');
47
        $this->request = new Request(
48
            $app,
49
            'foo_token',
50
            'GET',
51
            '/me/photos?keep=me',
52
            ['foo' => 'bar'],
53
            'foo_eTag',
54
            'v1337'
55
        );
56
    }
57
58
    /**
59
     * @expectedException \Facebook\Exception\SDKException

tests/GraphNode/GraphNodeFactoryTest.php 1 location

@@ 43-55 (lines=13) @@
40
     */
41
    protected $request;
42
43
    protected function setUp()
44
    {
45
        $app = new Application('123', 'foo_app_secret');
46
        $this->request = new Request(
47
            $app,
48
            'foo_token',
49
            'GET',
50
            '/me/photos?keep=me',
51
            ['foo' => 'bar'],
52
            'foo_eTag',
53
            'v1337'
54
        );
55
    }
56
57
    public function testAValidGraphNodeResponseWillNotThrow()
58
    {

tests/ResponseTest.php 1 location

@@ 39-51 (lines=13) @@
36
     */
37
    protected $request;
38
39
    protected function setUp()
40
    {
41
        $app = new Application('123', 'foo_secret');
42
        $this->request = new Request(
43
            $app,
44
            'foo_token',
45
            'GET',
46
            '/me/photos?keep=me',
47
            ['foo' => 'bar'],
48
            'foo_eTag',
49
            'v1337'
50
        );
51
    }
52
53
    public function testAnETagCanBeProperlyAccessed()
54
    {