@@ -13,7 +13,7 @@ |
||
| 13 | 13 | use Joomla\Test\TestHelper; |
| 14 | 14 | use PHPUnit\Framework\TestCase; |
| 15 | 15 | |
| 16 | -require_once __DIR__ . '/stubs/ClientInspector.php'; |
|
| 16 | +require_once __DIR__.'/stubs/ClientInspector.php'; |
|
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * Test class for OAuth1 Client. |
@@ -134,8 +134,7 @@ discard block |
||
| 134 | 134 | $this->object->setToken($token); |
| 135 | 135 | $result = $this->object->authenticate(); |
| 136 | 136 | $this->assertEquals($result, $token); |
| 137 | - } |
|
| 138 | - else |
|
| 137 | + } else |
|
| 139 | 138 | { |
| 140 | 139 | $this->object->setOption('requestTokenURL', 'https://example.com/request_token'); |
| 141 | 140 | $this->object->setOption('authoriseURL', 'https://example.com/authorize'); |
@@ -173,8 +172,7 @@ discard block |
||
| 173 | 172 | { |
| 174 | 173 | TestHelper::setValue($this->object, 'version', $version); |
| 175 | 174 | $data = array('oauth_verifier' => 'verifier', 'oauth_token' => 'token'); |
| 176 | - } |
|
| 177 | - else |
|
| 175 | + } else |
|
| 178 | 176 | { |
| 179 | 177 | TestHelper::setValue($this->object, 'version', $version); |
| 180 | 178 | $data = array('oauth_token' => 'token'); |
@@ -203,8 +201,7 @@ discard block |
||
| 203 | 201 | if (method_exists($this, 'expectException')) |
| 204 | 202 | { |
| 205 | 203 | $this->expectException('DomainException'); |
| 206 | - } |
|
| 207 | - else |
|
| 204 | + } else |
|
| 208 | 205 | { |
| 209 | 206 | $this->setExpectedException('DomainException'); |
| 210 | 207 | } |
@@ -309,8 +306,7 @@ discard block |
||
| 309 | 306 | $this->object->oauthRequest('www.example.com', $method, array('oauth_token' => '1235'), $data, array('Content-Type' => 'multipart/form-data')), |
| 310 | 307 | $this->equalTo($returnData) |
| 311 | 308 | ); |
| 312 | - } |
|
| 313 | - else |
|
| 309 | + } else |
|
| 314 | 310 | { |
| 315 | 311 | $this->client->expects($this->at(0)) |
| 316 | 312 | ->method($method) |