Code Duplication    Length = 11-11 lines in 3 locations

tests/FacebookTest.php 3 locations

@@ 102-112 (lines=11) @@
99
        );
100
    }
101
102
    public function testStreamHttpClientHandlerCanBeForced()
103
    {
104
        $config = array_merge($this->config, [
105
            'http_client_handler' => 'stream'
106
        ]);
107
        $fb = new Facebook($config);
108
        $this->assertInstanceOf(
109
            'Facebook\HttpClients\FacebookStreamHttpClient',
110
            $fb->getClient()->getHttpClientHandler()
111
        );
112
    }
113
114
    public function testGuzzleHttpClientHandlerCanBeForced()
115
    {
@@ 114-124 (lines=11) @@
111
        );
112
    }
113
114
    public function testGuzzleHttpClientHandlerCanBeForced()
115
    {
116
        $config = array_merge($this->config, [
117
            'http_client_handler' => 'guzzle'
118
        ]);
119
        $fb = new Facebook($config);
120
        $this->assertInstanceOf(
121
            'Facebook\HttpClients\FacebookGuzzleHttpClient',
122
            $fb->getClient()->getHttpClientHandler()
123
        );
124
    }
125
126
    /**
127
     * @expectedException \InvalidArgumentException
@@ 137-147 (lines=11) @@
134
        new Facebook($config);
135
    }
136
137
    public function testPersistentDataHandlerCanBeForced()
138
    {
139
        $config = array_merge($this->config, [
140
            'persistent_data_handler' => 'memory'
141
        ]);
142
        $fb = new Facebook($config);
143
        $this->assertInstanceOf(
144
            'Facebook\PersistentData\FacebookMemoryPersistentDataHandler',
145
            $fb->getRedirectLoginHelper()->getPersistentDataHandler()
146
        );
147
    }
148
149
    public function testSettingAnInvalidUrlHandlerThrows()
150
    {