@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | public function testGetBaseUrl() |
| 20 | 20 | { |
| 21 | 21 | $abstract = $this->newInstance(); |
| 22 | - $getBaseUrlCaller = function () { |
|
| 22 | + $getBaseUrlCaller = function() { |
|
| 23 | 23 | $this->domain = 'domain'; |
| 24 | 24 | |
| 25 | 25 | return $this->getBaseUrl(); |
@@ -52,13 +52,13 @@ discard block |
||
| 52 | 52 | public function testGetFilePath() |
| 53 | 53 | { |
| 54 | 54 | $abstract = $this->newInstance(); |
| 55 | - $getFilePathCaller = function ($val) { |
|
| 55 | + $getFilePathCaller = function($val) { |
|
| 56 | 56 | return $this->getFilePath($val); |
| 57 | 57 | }; |
| 58 | 58 | $bound = $getFilePathCaller->bindTo($abstract, $abstract); |
| 59 | - $this->assertEquals(__DIR__.'/data/Captcha.jpg', $bound(__DIR__.'/data/Captcha.jpg')); |
|
| 59 | + $this->assertEquals(__DIR__ . '/data/Captcha.jpg', $bound(__DIR__ . '/data/Captcha.jpg')); |
|
| 60 | 60 | $filePathUpload = $bound('https://upload.wikimedia.org/wikipedia/commons/6/69/Captcha.jpg'); |
| 61 | - $file1 = file_get_contents(__DIR__.'/data/Captcha.jpg'); |
|
| 61 | + $file1 = file_get_contents(__DIR__ . '/data/Captcha.jpg'); |
|
| 62 | 62 | $file2 = file_get_contents($filePathUpload); |
| 63 | 63 | $this->assertEquals($file1, $file2); |
| 64 | 64 | } |
@@ -70,11 +70,11 @@ discard block |
||
| 70 | 70 | public function testGetFilePathErrorFileNotFound() |
| 71 | 71 | { |
| 72 | 72 | $abstract = $this->newInstance(); |
| 73 | - $getFilePathCaller = function ($val) { |
|
| 73 | + $getFilePathCaller = function($val) { |
|
| 74 | 74 | return $this->getFilePath($val); |
| 75 | 75 | }; |
| 76 | 76 | $bound = $getFilePathCaller->bindTo($abstract, $abstract); |
| 77 | - $bound(__DIR__.'/data/Captcha1.jpg'); |
|
| 77 | + $bound(__DIR__ . '/data/Captcha1.jpg'); |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | public function testGetFilePathErrorFileIsNotLoaded() |
| 86 | 86 | { |
| 87 | 87 | $abstract = $this->newInstance(); |
| 88 | - $getFilePathCaller = function ($val) { |
|
| 88 | + $getFilePathCaller = function($val) { |
|
| 89 | 89 | return $this->getFilePath($val); |
| 90 | 90 | }; |
| 91 | 91 | $bound = $getFilePathCaller->bindTo($abstract, $abstract); |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | public function testGetCurlResponseError() |
| 184 | 184 | { |
| 185 | 185 | $abstract = $this->newInstance(); |
| 186 | - $getCurlResponseCaller = function ($url, $val) { |
|
| 186 | + $getCurlResponseCaller = function($url, $val) { |
|
| 187 | 187 | return $this->getCurlResponse($url, $val); |
| 188 | 188 | }; |
| 189 | 189 | $bound = $getCurlResponseCaller->bindTo($abstract, $abstract); |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | public function testGetCurlResponse() |
| 194 | 194 | { |
| 195 | 195 | $abstract = $this->newInstance(); |
| 196 | - $getCurlResponseCaller = function ($url, $val) { |
|
| 196 | + $getCurlResponseCaller = function($url, $val) { |
|
| 197 | 197 | return $this->getCurlResponse($url, $val); |
| 198 | 198 | }; |
| 199 | 199 | $bound = $getCurlResponseCaller->bindTo($abstract, $abstract); |