Skip to content

Commit 809f7c0

Browse files
committed
NFS-616: converted spaces to tabs
1 parent 065ab2c commit 809f7c0

2 files changed

Lines changed: 131 additions & 131 deletions

File tree

test/PluginSessionTest.php

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
*
88
* @category Authentication
99
* @copyright 2017-2019 Staffbase, GmbH.
10-
* @author Vitaliy Ivanov
11-
* @license http://www.apache.org/licenses/LICENSE-2.0
12-
* @link https://github.com/staffbase/plugins-sdk-php
10+
* @author Vitaliy Ivanov
11+
* @license http://www.apache.org/licenses/LICENSE-2.0
12+
* @link https://github.com/staffbase/plugins-sdk-php
1313
*/
1414
namespace Staffbase\plugins\test;
1515

@@ -38,7 +38,7 @@ class PluginSessionTest extends TestCase
3838
*/
3939
public function __construct() {
4040

41-
parent::__construct();
41+
parent::__construct();
4242
$rsa = new RSA();
4343
$keypair = $rsa->createKey();
4444

@@ -85,9 +85,9 @@ public function testConstructorWorksAsExpected() {
8585
->onlyMethods(array('openSession', 'closeSession'))
8686
->getMock();
8787

88-
$mock->expects($this->exactly(2))
89-
->method('openSession')
90-
->with($this->pluginId);
88+
$mock->expects($this->exactly(2))
89+
->method('openSession')
90+
->with($this->pluginId);
9191

9292
$reflectedClass = new ReflectionClass($this->classname);
9393
$constructor = $reflectedClass->getConstructor();
@@ -120,8 +120,8 @@ public function testConstructorRejectsSpoofedPID() {
120120

121121
$this->setupEnvironment($this->pluginInstanceId. 'spoof', null, false);
122122

123-
$this->expectException(SSOException::class);
124-
$constructor->invoke($mock, $this->pluginId, $this->publicKey);
123+
$this->expectException(SSOException::class);
124+
$constructor->invoke($mock, $this->pluginId, $this->publicKey);
125125
}
126126

127127
/**
@@ -140,12 +140,12 @@ public function testConstructorRefuseEmptyPluginId() {
140140
->onlyMethods(array('openSession', 'closeSession'))
141141
->getMock();
142142

143-
$this->expectException(SSOException::class);
144-
$this->expectExceptionMessage('Empty plugin ID.');
143+
$this->expectException(SSOException::class);
144+
$this->expectExceptionMessage('Empty plugin ID.');
145145

146-
$reflectedClass = new ReflectionClass($this->classname);
147-
$constructor = $reflectedClass->getConstructor();
148-
$constructor->invoke($mock, '', $this->publicKey);
146+
$reflectedClass = new ReflectionClass($this->classname);
147+
$constructor = $reflectedClass->getConstructor();
148+
$constructor->invoke($mock, '', $this->publicKey);
149149
}
150150

151151
/**
@@ -164,12 +164,12 @@ public function testConstructorRefuseEmptySecret() {
164164
->onlyMethods(array('openSession', 'closeSession'))
165165
->getMock();
166166

167-
$this->expectException(SSOException::class);
168-
$this->expectExceptionMessage('Empty app secret.');
167+
$this->expectException(SSOException::class);
168+
$this->expectExceptionMessage('Empty app secret.');
169169

170-
$reflectedClass = new ReflectionClass($this->classname);
171-
$constructor = $reflectedClass->getConstructor();
172-
$constructor->invoke($mock, $this->pluginId, '');
170+
$reflectedClass = new ReflectionClass($this->classname);
171+
$constructor = $reflectedClass->getConstructor();
172+
$constructor->invoke($mock, $this->pluginId, '');
173173
}
174174

175175
/**
@@ -188,12 +188,12 @@ public function testConstructorRefuseEmptyEnv() {
188188
->onlyMethods(array('openSession', 'closeSession'))
189189
->getMock();
190190

191-
$this->expectException(SSOAuthenticationException::class);
192-
$this->expectExceptionMessage('Missing PID or JWT query parameter in Request.');
191+
$this->expectException(SSOAuthenticationException::class);
192+
$this->expectExceptionMessage('Missing PID or JWT query parameter in Request.');
193193

194-
$reflectedClass = new ReflectionClass($this->classname);
195-
$constructor = $reflectedClass->getConstructor();
196-
$constructor->invoke($mock, $this->pluginId, $this->publicKey);
194+
$reflectedClass = new ReflectionClass($this->classname);
195+
$constructor = $reflectedClass->getConstructor();
196+
$constructor->invoke($mock, $this->pluginId, $this->publicKey);
197197
}
198198

199199
/**
@@ -212,12 +212,12 @@ public function testConstructorRefuseHavingBothJwtAndPid() {
212212
->onlyMethods(array('openSession', 'closeSession'))
213213
->getMock();
214214

215-
$this->expectException(SSOAuthenticationException::class);
216-
$this->expectExceptionMessage('Tried to initialize the session with both PID and JWT provided.');
215+
$this->expectException(SSOAuthenticationException::class);
216+
$this->expectExceptionMessage('Tried to initialize the session with both PID and JWT provided.');
217217

218-
$reflectedClass = new ReflectionClass($this->classname);
219-
$constructor = $reflectedClass->getConstructor();
220-
$constructor->invoke($mock, $this->pluginId, $this->publicKey);
218+
$reflectedClass = new ReflectionClass($this->classname);
219+
$constructor = $reflectedClass->getConstructor();
220+
$constructor->invoke($mock, $this->pluginId, $this->publicKey);
221221
}
222222

223223
/**
@@ -236,8 +236,8 @@ public function testConstructorUpdatesInfoOnJwt() {
236236
->onlyMethods(array('openSession', 'closeSession'))
237237
->getMock();
238238

239-
/** @var PluginSession $session */
240-
$session = new $mock($this->pluginId, $this->publicKey);
239+
/** @var PluginSession $session */
240+
$session = new $mock($this->pluginId, $this->publicKey);
241241

242242
$this->assertEquals($session->getRole(), $this->tokenData[PluginSession::CLAIM_USER_ROLE]);
243243

@@ -247,7 +247,7 @@ public function testConstructorUpdatesInfoOnJwt() {
247247

248248
$this->setupEnvironment(null, $newToken, false);
249249

250-
/** @var PluginSession $newSession */
250+
/** @var PluginSession $newSession */
251251
$newSession = new $mock($this->pluginId, $this->publicKey);
252252

253253
$this->assertEquals($newSession->getRole(), $tokenData[PluginSession::CLAIM_USER_ROLE]);
@@ -272,7 +272,7 @@ public function testConstructorSupportMultipleInstances() {
272272
->onlyMethods(array('openSession', 'closeSession'))
273273
->getMock();
274274

275-
/** @var PluginSession $session */
275+
/** @var PluginSession $session */
276276
$session = new $mock($this->pluginId, $this->publicKey);
277277

278278

@@ -283,14 +283,14 @@ public function testConstructorSupportMultipleInstances() {
283283

284284
$this->setupEnvironment(null, $newToken, false);
285285

286-
/** @var PluginSession $newSession */
287-
$newSession = new $mock($this->pluginId, $this->publicKey);
286+
/** @var PluginSession $newSession */
287+
$newSession = new $mock($this->pluginId, $this->publicKey);
288288

289289
$this->assertEquals($newSession->getRole(), $tokenData[PluginSession::CLAIM_USER_ROLE]);
290290
$this->assertNotEquals($session->getRole(), $newSession->getRole());
291291

292-
$sessionVar = 'myvariable';
293-
$sessionVal = 'mysessiontestvalue';
292+
$sessionVar = 'myvariable';
293+
$sessionVal = 'mysessiontestvalue';
294294
$sessionVal2 = 'mysessiontestvalue2';
295295

296296
$session->setSessionVar($sessionVar, $sessionVal);
@@ -318,8 +318,8 @@ public function testGetSessionData() {
318318
->onlyMethods(array('openSession', 'closeSession'))
319319
->getMock();
320320

321-
/** @var PluginSession $session */
322-
$session = new $mock($this->pluginId, $this->publicKey);
321+
/** @var PluginSession $session */
322+
$session = new $mock($this->pluginId, $this->publicKey);
323323

324324
$sessionData = [
325325
'test1' => 'val1',

0 commit comments

Comments
 (0)