Code Duplication    Length = 12-15 lines in 2 locations

tests/ExtractUrlTest.php 1 location

@@ 29-40 (lines=12) @@
26
	 */
27
	protected $requestNoCA;
28
29
	protected function setUp(){
30
		$co = [CURLOPT_FOLLOWLOCATION => false];
31
32
		$o1 = new RequestOptions;
33
		$o1->curl_options = $co;
34
		$o1->ca_info = __DIR__.'/test-cacert.pem';
35
		$this->requestWithCA = new Request($o1);
36
37
		$o2 = new RequestOptions;
38
		$o2->curl_options = $co;
39
		$this->requestNoCA = new Request($o2);
40
	}
41
42
	public function shortURLDataProvider(){
43
		return [

tests/RequestTest.php 1 location

@@ 42-56 (lines=15) @@
39
	 */
40
	protected $response;
41
42
	protected function setUp(){
43
44
		$co = [
45
			CURLOPT_HTTPHEADER => ['Authorization: Bearer '.self::GW2_APIKEY]
46
		];
47
48
		$o1 = new RequestOptions;
49
		$o1->curl_options = $co;
50
		$o1->ca_info = __DIR__.'/test-cacert.pem';
51
		$this->requestWithCA = new Request($o1);
52
53
		$o2 = new RequestOptions;
54
		$o2->curl_options = $co;
55
		$this->requestNoCA = new Request($o2);
56
	}
57
58
	public function testInstanceWithoutArgsCoverage(){
59
		$this->assertInstanceOf(Request::class, new Request); // HA HA.