summaryrefslogtreecommitdiff
path: root/tests/Unit/Http
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-04-24 11:01:37 +0200
committermsquare <msquare@notrademark.de>2019-04-25 18:17:19 +0200
commit79c92da8c14de61dccc015f04c3900aac4bd4179 (patch)
tree7b4e0f51d2bd2508905fdc697b31a73810a1b5d5 /tests/Unit/Http
parent7c3a0c70e8d23f47287ead148c6b8682216352c6 (diff)
Formatting
```bash php-cs-fixer fix --allow-risky=yes --rules=@PSR2,psr4,mb_str_functions.php_unit_construct,php_unit_ordered_covers,trailing_comma_in_multiline_array --rules='{"array_syntax": {"syntax":"short"}}' [tests/|src/] ```
Diffstat (limited to 'tests/Unit/Http')
-rw-r--r--tests/Unit/Http/Exceptions/HttpExceptionTest.php2
-rw-r--r--tests/Unit/Http/LegacyUrlGeneratorTest.php2
-rw-r--r--tests/Unit/Http/RequestTest.php2
-rw-r--r--tests/Unit/Http/ResponseTest.php4
-rw-r--r--tests/Unit/Http/SessionHandlers/DatabaseHandlerTest.php4
-rw-r--r--tests/Unit/Http/SessionServiceProviderTest.php6
6 files changed, 10 insertions, 10 deletions
diff --git a/tests/Unit/Http/Exceptions/HttpExceptionTest.php b/tests/Unit/Http/Exceptions/HttpExceptionTest.php
index ce2b064d..6ab56d62 100644
--- a/tests/Unit/Http/Exceptions/HttpExceptionTest.php
+++ b/tests/Unit/Http/Exceptions/HttpExceptionTest.php
@@ -9,8 +9,8 @@ class HttpExceptionTest extends TestCase
{
/**
* @covers \Engelsystem\Http\Exceptions\HttpException::__construct
- * @covers \Engelsystem\Http\Exceptions\HttpException::getStatusCode
* @covers \Engelsystem\Http\Exceptions\HttpException::getHeaders
+ * @covers \Engelsystem\Http\Exceptions\HttpException::getStatusCode
*/
public function testConstruct()
{
diff --git a/tests/Unit/Http/LegacyUrlGeneratorTest.php b/tests/Unit/Http/LegacyUrlGeneratorTest.php
index 2c087f8f..8caf3c77 100644
--- a/tests/Unit/Http/LegacyUrlGeneratorTest.php
+++ b/tests/Unit/Http/LegacyUrlGeneratorTest.php
@@ -4,8 +4,8 @@ namespace Engelsystem\Test\Unit\Http;
use Engelsystem\Application;
use Engelsystem\Container\Container;
-use Engelsystem\Http\Request;
use Engelsystem\Http\LegacyUrlGenerator;
+use Engelsystem\Http\Request;
use Engelsystem\Http\UrlGeneratorInterface;
use PHPUnit\Framework\TestCase;
diff --git a/tests/Unit/Http/RequestTest.php b/tests/Unit/Http/RequestTest.php
index 26bf0116..4d942311 100644
--- a/tests/Unit/Http/RequestTest.php
+++ b/tests/Unit/Http/RequestTest.php
@@ -163,7 +163,7 @@ class RequestTest extends TestCase
[
'*',
'/foo/bar',
- 'https://lorem.ipsum/test?lor=em'
+ 'https://lorem.ipsum/test?lor=em',
] as $target
) {
$new = $request->withRequestTarget($target);
diff --git a/tests/Unit/Http/ResponseTest.php b/tests/Unit/Http/ResponseTest.php
index 6f57e1db..6f20ff67 100644
--- a/tests/Unit/Http/ResponseTest.php
+++ b/tests/Unit/Http/ResponseTest.php
@@ -26,8 +26,8 @@ class ResponseTest extends TestCase
}
/**
- * @covers \Engelsystem\Http\Response::withStatus
* @covers \Engelsystem\Http\Response::getReasonPhrase
+ * @covers \Engelsystem\Http\Response::withStatus
*/
public function testWithStatus()
{
@@ -85,4 +85,4 @@ class ResponseTest extends TestCase
$response = new Response();
$response->withView('foo');
}
-} \ No newline at end of file
+}
diff --git a/tests/Unit/Http/SessionHandlers/DatabaseHandlerTest.php b/tests/Unit/Http/SessionHandlers/DatabaseHandlerTest.php
index 61ab982d..14f23c00 100644
--- a/tests/Unit/Http/SessionHandlers/DatabaseHandlerTest.php
+++ b/tests/Unit/Http/SessionHandlers/DatabaseHandlerTest.php
@@ -12,8 +12,8 @@ class DatabaseHandlerTest extends TestCase
/**
* @covers \Engelsystem\Http\SessionHandlers\DatabaseHandler::__construct
- * @covers \Engelsystem\Http\SessionHandlers\DatabaseHandler::read
* @covers \Engelsystem\Http\SessionHandlers\DatabaseHandler::getQuery
+ * @covers \Engelsystem\Http\SessionHandlers\DatabaseHandler::read
*/
public function testRead()
{
@@ -25,8 +25,8 @@ class DatabaseHandlerTest extends TestCase
}
/**
- * @covers \Engelsystem\Http\SessionHandlers\DatabaseHandler::write
* @covers \Engelsystem\Http\SessionHandlers\DatabaseHandler::getCurrentTimestamp
+ * @covers \Engelsystem\Http\SessionHandlers\DatabaseHandler::write
*/
public function testWrite()
{
diff --git a/tests/Unit/Http/SessionServiceProviderTest.php b/tests/Unit/Http/SessionServiceProviderTest.php
index 204cfe1e..08f1945a 100644
--- a/tests/Unit/Http/SessionServiceProviderTest.php
+++ b/tests/Unit/Http/SessionServiceProviderTest.php
@@ -17,8 +17,8 @@ use Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface as
class SessionServiceProviderTest extends ServiceProviderTest
{
/**
- * @covers \Engelsystem\Http\SessionServiceProvider::register()
* @covers \Engelsystem\Http\SessionServiceProvider::getSessionStorage()
+ * @covers \Engelsystem\Http\SessionServiceProvider::register()
*/
public function testRegister()
{
@@ -53,13 +53,13 @@ class SessionServiceProviderTest extends ServiceProviderTest
[Session::class],
[
NativeSessionStorage::class,
- ['options' => ['cookie_httponly' => true, 'name' => 'session'], 'handler' => null]
+ ['options' => ['cookie_httponly' => true, 'name' => 'session'], 'handler' => null],
],
[Session::class],
[DatabaseHandler::class],
[
NativeSessionStorage::class,
- ['options' => ['cookie_httponly' => true, 'name' => 'foobar'], 'handler' => $databaseHandler]
+ ['options' => ['cookie_httponly' => true, 'name' => 'foobar'], 'handler' => $databaseHandler],
],
[Session::class]
)