Skip to content

Commit 58a79f2

Browse files
committed
Changed class elements order
1 parent be9289e commit 58a79f2

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"psr/http-server-middleware": "^1.0"
2020
},
2121
"require-dev": {
22-
"polymorphine/dev": "0.5.*"
22+
"polymorphine/dev": "0.6.*"
2323
},
2424
"autoload": {
2525
"psr-4": {

tests/PersistentTokenContextTest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,6 @@
2020

2121
class PersistentTokenContextTest extends TestCase
2222
{
23-
public static function unsafeMethods(): iterable
24-
{
25-
return [['POST'], ['PUT'], ['DELETE'], ['PATCH'], ['TRACE'], ['CONNECT']];
26-
}
27-
28-
public static function safeMethods(): iterable
29-
{
30-
return [['GET'], ['HEAD'], ['OPTIONS']];
31-
}
32-
3323
/** @dataProvider safeMethods */
3424
public function test_ForSafeMethodRequests_TokenIsIgnored(string $method)
3525
{
@@ -119,6 +109,16 @@ public function test_ResetToken_RemovesToken()
119109
$this->assertNotEquals($token, $newToken);
120110
}
121111

112+
public static function unsafeMethods(): iterable
113+
{
114+
return [['POST'], ['PUT'], ['DELETE'], ['PATCH'], ['TRACE'], ['CONNECT']];
115+
}
116+
117+
public static function safeMethods(): iterable
118+
{
119+
return [['GET'], ['HEAD'], ['OPTIONS']];
120+
}
121+
122122
private function assertResponse(PersistentTokenContext $guard, Doubles\FakeServerRequest $request)
123123
{
124124
$this->assertInstanceOf(ResponseInterface::class, $guard->process($request, $this->handler()));

0 commit comments

Comments
 (0)