Skip to content

Commit 7a643bc

Browse files
committed
test: sort namespaces
The namespaces in the test classes were sorted. #17
1 parent 444be3c commit 7a643bc

16 files changed

+88
-88
lines changed

tests/AllMethodTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Josantonius\Session\Tests;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Josantonius\Session\Session;
1516
use Josantonius\Session\Facades\Session as SessionFacade;
16-
use PHPUnit\Framework\TestCase;
1717

1818
class AllMethodTest extends TestCase
1919
{
@@ -29,7 +29,7 @@ public function setUp(): void
2929
/**
3030
* @runInSeparateProcess
3131
*/
32-
public function testShouldGetAllAttributes()
32+
public function testShouldGetAllAttributes(): void
3333
{
3434
$this->session->start();
3535

@@ -41,7 +41,7 @@ public function testShouldGetAllAttributes()
4141
/**
4242
* @runInSeparateProcess
4343
*/
44-
public function testShouldGetAllAttributesDefinedOutsideLibrary()
44+
public function testShouldGetAllAttributesDefinedOutsideLibrary(): void
4545
{
4646
session_start();
4747

@@ -53,15 +53,15 @@ public function testShouldGetAllAttributesDefinedOutsideLibrary()
5353
/**
5454
* @runInSeparateProcess
5555
*/
56-
public function testShouldReturnEmptyArrayWhenUnstartedSession()
56+
public function testShouldReturnEmptyArrayWhenUnstartedSession(): void
5757
{
5858
$this->assertIsArray($this->session->all());
5959
}
6060

6161
/**
6262
* @runInSeparateProcess
6363
*/
64-
public function testShouldBeAvailableFromTheFacade()
64+
public function testShouldBeAvailableFromTheFacade(): void
6565
{
6666
$facade = new SessionFacade();
6767

tests/ClearMethodTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
namespace Josantonius\Session\Tests;
1313

14-
use Josantonius\Session\Exceptions\SessionException;
14+
use PHPUnit\Framework\TestCase;
1515
use Josantonius\Session\Session;
16+
use Josantonius\Session\Exceptions\SessionException;
1617
use Josantonius\Session\Facades\Session as SessionFacade;
17-
use PHPUnit\Framework\TestCase;
1818

1919
class ClearMethodTest extends TestCase
2020
{
@@ -30,7 +30,7 @@ public function setUp(): void
3030
/**
3131
* @runInSeparateProcess
3232
*/
33-
public function testShouldClearSession()
33+
public function testShouldClearSession(): void
3434
{
3535
$this->session->start();
3636

@@ -44,7 +44,7 @@ public function testShouldClearSession()
4444
/**
4545
* @runInSeparateProcess
4646
*/
47-
public function testShouldClearSessionWhenNativeSessionWasStarted()
47+
public function testShouldClearSessionWhenNativeSessionWasStarted(): void
4848
{
4949
session_start();
5050

@@ -58,7 +58,7 @@ public function testShouldClearSessionWhenNativeSessionWasStarted()
5858
/**
5959
* @runInSeparateProcess
6060
*/
61-
public function testShouldFailIfSessionIsUnstarted()
61+
public function testShouldFailIfSessionIsUnstarted(): void
6262
{
6363
$this->expectException(SessionException::class);
6464

@@ -68,7 +68,7 @@ public function testShouldFailIfSessionIsUnstarted()
6868
/**
6969
* @runInSeparateProcess
7070
*/
71-
public function testShouldBeAvailableFromTheFacade()
71+
public function testShouldBeAvailableFromTheFacade(): void
7272
{
7373
$facade = new SessionFacade();
7474

tests/DestroyMethodTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
namespace Josantonius\Session\Tests;
1313

14-
use Josantonius\Session\Exceptions\SessionException;
14+
use PHPUnit\Framework\TestCase;
1515
use Josantonius\Session\Session;
16+
use Josantonius\Session\Exceptions\SessionException;
1617
use Josantonius\Session\Facades\Session as SessionFacade;
17-
use PHPUnit\Framework\TestCase;
1818

1919
class DestroyMethodTest extends TestCase
2020
{
@@ -30,7 +30,7 @@ public function setUp(): void
3030
/**
3131
* @runInSeparateProcess
3232
*/
33-
public function testShouldDestroySession()
33+
public function testShouldDestroySession(): void
3434
{
3535
$this->session->start();
3636

@@ -44,7 +44,7 @@ public function testShouldDestroySession()
4444
/**
4545
* @runInSeparateProcess
4646
*/
47-
public function testShouldDestroySessionWhenNativeSessionWasStarted()
47+
public function testShouldDestroySessionWhenNativeSessionWasStarted(): void
4848
{
4949
session_start();
5050

@@ -58,7 +58,7 @@ public function testShouldDestroySessionWhenNativeSessionWasStarted()
5858
/**
5959
* @runInSeparateProcess
6060
*/
61-
public function testShouldFailIfSessionIsUnstarted()
61+
public function testShouldFailIfSessionIsUnstarted(): void
6262
{
6363
$this->expectException(SessionException::class);
6464

@@ -68,7 +68,7 @@ public function testShouldFailIfSessionIsUnstarted()
6868
/**
6969
* @runInSeparateProcess
7070
*/
71-
public function testShouldBeAvailableFromTheFacade()
71+
public function testShouldBeAvailableFromTheFacade(): void
7272
{
7373
$facade = new SessionFacade();
7474

tests/GetIdMethodTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Josantonius\Session\Tests;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Josantonius\Session\Session;
1516
use Josantonius\Session\Facades\Session as SessionFacade;
16-
use PHPUnit\Framework\TestCase;
1717

1818
class GetIdMethodTest extends TestCase
1919
{
@@ -29,7 +29,7 @@ public function setUp(): void
2929
/**
3030
* @runInSeparateProcess
3131
*/
32-
public function testShouldGetSessionId()
32+
public function testShouldGetSessionId(): void
3333
{
3434
$this->session->start();
3535

@@ -39,7 +39,7 @@ public function testShouldGetSessionId()
3939
/**
4040
* @runInSeparateProcess
4141
*/
42-
public function testShouldGetSessionIdIfNativeSessionWasStarted()
42+
public function testShouldGetSessionIdIfNativeSessionWasStarted(): void
4343
{
4444
session_start();
4545

@@ -49,15 +49,15 @@ public function testShouldGetSessionIdIfNativeSessionWasStarted()
4949
/**
5050
* @runInSeparateProcess
5151
*/
52-
public function testShouldReturnEmptyStringIfSessionIsUnstarted()
52+
public function testShouldReturnEmptyStringIfSessionIsUnstarted(): void
5353
{
5454
$this->assertEquals('', $this->session->getId());
5555
}
5656

5757
/**
5858
* @runInSeparateProcess
5959
*/
60-
public function testShouldBeAvailableFromTheFacade()
60+
public function testShouldBeAvailableFromTheFacade(): void
6161
{
6262
$facade = new SessionFacade();
6363

tests/GetMethodTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Josantonius\Session\Tests;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Josantonius\Session\Session;
1516
use Josantonius\Session\Facades\Session as SessionFacade;
16-
use PHPUnit\Framework\TestCase;
1717

1818
class GetMethodTest extends TestCase
1919
{
@@ -29,7 +29,7 @@ public function setUp(): void
2929
/**
3030
* @runInSeparateProcess
3131
*/
32-
public function testShouldGetAttributeIfExists()
32+
public function testShouldGetAttributeIfExists(): void
3333
{
3434
$this->session->start();
3535

@@ -41,7 +41,7 @@ public function testShouldGetAttributeIfExists()
4141
/**
4242
* @runInSeparateProcess
4343
*/
44-
public function testShouldGetDefaultValueIfNotExists()
44+
public function testShouldGetDefaultValueIfNotExists(): void
4545
{
4646
$this->session->start();
4747

@@ -51,7 +51,7 @@ public function testShouldGetDefaultValueIfNotExists()
5151
/**
5252
* @runInSeparateProcess
5353
*/
54-
public function testShouldGetCustomDefaultValueIfNotExists()
54+
public function testShouldGetCustomDefaultValueIfNotExists(): void
5555
{
5656
$this->session->start();
5757

@@ -61,7 +61,7 @@ public function testShouldGetCustomDefaultValueIfNotExists()
6161
/**
6262
* @runInSeparateProcess
6363
*/
64-
public function testShouldGetAttributeDefinedOutsideLibrary()
64+
public function testShouldGetAttributeDefinedOutsideLibrary(): void
6565
{
6666
session_start();
6767

@@ -73,7 +73,7 @@ public function testShouldGetAttributeDefinedOutsideLibrary()
7373
/**
7474
* @runInSeparateProcess
7575
*/
76-
public function testShouldBeAvailableFromTheFacade()
76+
public function testShouldBeAvailableFromTheFacade(): void
7777
{
7878
$facade = new SessionFacade();
7979

tests/GetNameMethodTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Josantonius\Session\Tests;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Josantonius\Session\Session;
1516
use Josantonius\Session\Facades\Session as SessionFacade;
16-
use PHPUnit\Framework\TestCase;
1717

1818
class GetNameMethodTest extends TestCase
1919
{
@@ -29,7 +29,7 @@ public function setUp(): void
2929
/**
3030
* @runInSeparateProcess
3131
*/
32-
public function testShouldGetSessionName()
32+
public function testShouldGetSessionName(): void
3333
{
3434
$this->session->start();
3535

@@ -39,7 +39,7 @@ public function testShouldGetSessionName()
3939
/**
4040
* @runInSeparateProcess
4141
*/
42-
public function testShouldGetSessionNameIfNativeSessionWasStarted()
42+
public function testShouldGetSessionNameIfNativeSessionWasStarted(): void
4343
{
4444
session_start();
4545

@@ -49,15 +49,15 @@ public function testShouldGetSessionNameIfNativeSessionWasStarted()
4949
/**
5050
* @runInSeparateProcess
5151
*/
52-
public function testShouldReturnEmptyStringIfSessionIsUnstarted()
52+
public function testShouldReturnEmptyStringIfSessionIsUnstarted(): void
5353
{
5454
$this->assertEquals('PHPSESSID', $this->session->getName());
5555
}
5656

5757
/**
5858
* @runInSeparateProcess
5959
*/
60-
public function testShouldBeAvailableFromTheFacade()
60+
public function testShouldBeAvailableFromTheFacade(): void
6161
{
6262
$facade = new SessionFacade();
6363

tests/HasMethodTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Josantonius\Session\Tests;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Josantonius\Session\Session;
1516
use Josantonius\Session\Facades\Session as SessionFacade;
16-
use PHPUnit\Framework\TestCase;
1717

1818
class HasMethodTest extends TestCase
1919
{
@@ -29,7 +29,7 @@ public function setUp(): void
2929
/**
3030
* @runInSeparateProcess
3131
*/
32-
public function testShouldCheckIfAttributeExists()
32+
public function testShouldCheckIfAttributeExists(): void
3333
{
3434
$this->session->start();
3535

@@ -43,7 +43,7 @@ public function testShouldCheckIfAttributeExists()
4343
/**
4444
* @runInSeparateProcess
4545
*/
46-
public function testShouldCheckAttributeDefinedOutsideLibrary()
46+
public function testShouldCheckAttributeDefinedOutsideLibrary(): void
4747
{
4848
session_start();
4949

@@ -55,7 +55,7 @@ public function testShouldCheckAttributeDefinedOutsideLibrary()
5555
/**
5656
* @runInSeparateProcess
5757
*/
58-
public function testShouldBeAvailableFromTheFacade()
58+
public function testShouldBeAvailableFromTheFacade(): void
5959
{
6060
$facade = new SessionFacade();
6161

tests/IsStartedMethodTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Josantonius\Session\Tests;
1313

14+
use PHPUnit\Framework\TestCase;
1415
use Josantonius\Session\Session;
1516
use Josantonius\Session\Facades\Session as SessionFacade;
16-
use PHPUnit\Framework\TestCase;
1717

1818
class IsActiveMethodTest extends TestCase
1919
{
@@ -29,7 +29,7 @@ public function setUp(): void
2929
/**
3030
* @runInSeparateProcess
3131
*/
32-
public function testShouldCheckIfSessionIsActive()
32+
public function testShouldCheckIfSessionIsActive(): void
3333
{
3434
$this->assertFalse($this->session->isStarted());
3535

@@ -41,7 +41,7 @@ public function testShouldCheckIfSessionIsActive()
4141
/**
4242
* @runInSeparateProcess
4343
*/
44-
public function testShouldBeAvailableFromTheFacade()
44+
public function testShouldBeAvailableFromTheFacade(): void
4545
{
4646
$facade = new SessionFacade();
4747

0 commit comments

Comments
 (0)