Code Duplication    Length = 13-13 lines in 4 locations

tests/FacebookResponseTest.php 1 location

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

tests/GraphNodes/GraphEdgeTest.php 1 location

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

tests/GraphNodes/GraphObjectFactoryTest.php 1 location

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

tests/GraphNodes/GraphNodeFactoryTest.php 1 location

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