Skip to content

Commit 709541f

Browse files
committed
Changed class elements order
1 parent 582470e commit 709541f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"psr/http-server-middleware": "^1.0"
1818
},
1919
"require-dev": {
20-
"polymorphine/dev": "0.5.*"
20+
"polymorphine/dev": "0.6.*"
2121
},
2222
"autoload": {
2323
"psr-4": {

tests/Doubles/MockedMiddleware.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ class MockedMiddleware implements MiddlewareInterface
2222
public static bool $instance = false;
2323
public static array $processedInstances = [];
2424

25+
public static function reset(): void
26+
{
27+
self::$instance = false;
28+
self::$processedInstances = [];
29+
}
30+
2531
private string $id;
2632

2733
public function __construct(string $id)
@@ -30,12 +36,6 @@ public function __construct(string $id)
3036
self::$instance = true;
3137
}
3238

33-
public static function reset(): void
34-
{
35-
self::$instance = false;
36-
self::$processedInstances = [];
37-
}
38-
3939
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
4040
{
4141
self::$processedInstances[] = $this->id;

0 commit comments

Comments
 (0)