Skip to content

Commit 0634048

Browse files
committed
Move private method to bottom of class
1 parent 2821e9f commit 0634048

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/CacheTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@
2222

2323
class CacheTest extends TestCase
2424
{
25-
private function createCache(string $type, int $maxAge, bool $mustRevalidate, bool $withStreamFactory): Cache
26-
{
27-
$streamFactory = $withStreamFactory ? new StreamFactory() : null;
28-
return new Cache($type, $maxAge, $mustRevalidate, $streamFactory);
29-
}
30-
3125
public function requestFactory(): ServerRequestInterface
3226
{
3327
$serverRequestFactory = new ServerRequestFactory();
@@ -235,4 +229,10 @@ public function testLastModifiedReturnsNoBodyOnCacheHitWhenAStreamFactoryIsProvi
235229
self::assertEquals(304, $res->getStatusCode());
236230
self::assertSame('', (string) $res->getBody());
237231
}
232+
233+
private function createCache(string $type, int $maxAge, bool $mustRevalidate, bool $withStreamFactory): Cache
234+
{
235+
$streamFactory = $withStreamFactory ? new StreamFactory() : null;
236+
return new Cache($type, $maxAge, $mustRevalidate, $streamFactory);
237+
}
238238
}

0 commit comments

Comments
 (0)