Test Setup Failed
Push — master ( 5af7b3...f99ea3 )
by Haridarshan
02:33
created
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-require __DIR__ . '/../../../../vendor/autoload.php';
2
+require __DIR__.'/../../../../vendor/autoload.php';
3 3
 
4 4
 define('CLIENT_ID', getenv('TEST_CLIENT_ID'));
5 5
 define('CLIENT_SECRET', getenv('TEST_CLIENT_SECRET'));
Please login to merge, or discard this patch.
tests/InstagramTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,18 +16,18 @@
 block discarded – undo
16 16
 		$this->instagram = new Instagram($config);
17 17
 	}
18 18
 	
19
-	public function testBuildClient(){
19
+	public function testBuildClient() {
20 20
 		$this->assertObjectHasAttribute('client_id', $this->instagram);		
21 21
 		$this->assertObjectHasAttribute('client_secret', $this->instagram);		
22 22
 		$this->assertObjectHasAttribute('callback_url', $this->instagram);
23 23
 	}
24 24
 	
25
-	public function testUrl(){
25
+	public function testUrl() {
26 26
 		$scope = array(
27 27
 			"basic"
28 28
 		);
29 29
 		
30
-		$url = $this->instagram->getUrl("oauth/authorize",["scope" => $scope]);
30
+		$url = $this->instagram->getUrl("oauth/authorize", ["scope" => $scope]);
31 31
 		
32 32
 		$this->assertEquals('https://api.instagram.com/oauth/authorize?client_id='.CLIENT_ID.'&redirect_uri='.urlencode(CALLBACK_URL).'&response_type=code&scope=basic', $url);
33 33
 	}
Please login to merge, or discard this patch.