Skip to content

Commit 468ccb5

Browse files
committed
rename test cases for decorators
1 parent 2e05ab0 commit 468ccb5

3 files changed

Lines changed: 14 additions & 17 deletions

File tree

tests/Decorators/ResponseDecoratorTest.php renamed to tests/ResponseTest.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
* @copyright Copyright (c) 2011-2018 Josh Lockhart
77
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE (MIT License)
88
*/
9-
namespace Slim\Tests\Http\Decorators;
9+
namespace Slim\Tests\Http;
1010

11-
use Slim\Http\Decorators\ResponseDecorator;
11+
use Slim\Http\Response;
1212
use Slim\Http\Factory\DecoratedResponseFactory;
1313
use Slim\Tests\Http\Providers\Psr17FactoryProvider;
14-
use Slim\Tests\Http\Test;
1514

16-
class ResponseDecoratorTest extends Test
15+
class ResponseTest extends TestCase
1716
{
1817
public function testDisableSetter()
1918
{
@@ -354,8 +353,8 @@ public function testIsServerError()
354353

355354
public function testToString()
356355
{
357-
$output = 'HTTP/1.1 404 Not Found' . ResponseDecorator::EOL .
358-
'X-Foo: Bar' . ResponseDecorator::EOL . ResponseDecorator::EOL .
356+
$output = 'HTTP/1.1 404 Not Found' . Response::EOL .
357+
'X-Foo: Bar' . Response::EOL . Response::EOL .
359358
'Where am I?';
360359

361360
$expectedOutputString = '';
@@ -391,7 +390,7 @@ public function testWithJson()
391390
$provider->getStreamFactory()
392391
);
393392

394-
/** @var ResponseDecorator $originalResponse */
393+
/** @var Response $originalResponse */
395394
$originalResponse = $decoratedResponseFactory->createResponse(503);
396395
$response = $originalResponse->withJson($data, 201);
397396

tests/Decorators/ServerRequestDecoratorTest.php renamed to tests/ServerRequestTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@
66
* @copyright Copyright (c) 2011-2018 Josh Lockhart
77
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE (MIT License)
88
*/
9-
namespace Slim\Tests\Http\Decorators;
9+
namespace Slim\Tests\Http;
1010

1111
use Slim\Http\Factory\DecoratedServerRequestFactory;
1212
use Slim\Tests\Http\Providers\Psr17FactoryProvider;
13-
use Slim\Tests\Http\Test;
1413

1514
/**
16-
* Class ServerRequestDecoratorTest
17-
* @package Slim\Tests\Http\Decorators
15+
* Class ServerRequestTest
16+
* @package Slim\Tests\Http
1817
*/
19-
class ServerRequestDecoratorTest extends Test
18+
class ServerRequestTest extends TestCase
2019
{
2120
public function testDisableSetter()
2221
{
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@
66
* @copyright Copyright (c) 2011-2018 Josh Lockhart
77
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE (MIT License)
88
*/
9-
namespace Slim\Tests\Http\Decorators;
9+
namespace Slim\Tests\Http;
1010

1111
use Slim\Http\Factory\DecoratedUriFactory;
1212
use Slim\Tests\Http\Providers\Psr17FactoryProvider;
13-
use Slim\Tests\Http\Test;
1413

1514
/**
16-
* Class UriDecoratorTest
17-
* @package Slim\Tests\Http\Decorators
15+
* Class UriTest
16+
* @package Slim\Tests\Http
1817
*/
19-
class UriDecoratorTest extends Test
18+
class UriTest extends TestCase
2019
{
2120
public function testDisableSetter()
2221
{

0 commit comments

Comments
 (0)