Code Duplication    Length = 9-9 lines in 2 locations

tests/FacebookTest.php 2 locations

@@ 159-167 (lines=9) @@
156
        $this->assertInstanceOf('Facebook\Url\FacebookUrlDetectionHandler', $fb->getUrlDetectionHandler());
157
    }
158
159
    public function testAnAccessTokenCanBeSetAsAString()
160
    {
161
        $fb = new Facebook($this->config);
162
        $fb->setDefaultAccessToken('foo_token');
163
        $accessToken = $fb->getDefaultAccessToken();
164
165
        $this->assertInstanceOf('Facebook\Authentication\AccessToken', $accessToken);
166
        $this->assertEquals('foo_token', (string)$accessToken);
167
    }
168
169
    public function testAnAccessTokenCanBeSetAsAnAccessTokenEntity()
170
    {
@@ 169-177 (lines=9) @@
166
        $this->assertEquals('foo_token', (string)$accessToken);
167
    }
168
169
    public function testAnAccessTokenCanBeSetAsAnAccessTokenEntity()
170
    {
171
        $fb = new Facebook($this->config);
172
        $fb->setDefaultAccessToken(new AccessToken('bar_token'));
173
        $accessToken = $fb->getDefaultAccessToken();
174
175
        $this->assertInstanceOf('Facebook\Authentication\AccessToken', $accessToken);
176
        $this->assertEquals('bar_token', (string)$accessToken);
177
    }
178
179
    /**
180
     * @expectedException \InvalidArgumentException