Skip to content

Commit

Permalink
rename test cases for decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
l0gicgate committed Nov 26, 2018
1 parent 2e05ab0 commit 468ccb5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@
* @copyright Copyright (c) 2011-2018 Josh Lockhart
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE (MIT License)
*/
namespace Slim\Tests\Http\Decorators;
namespace Slim\Tests\Http;

use Slim\Http\Decorators\ResponseDecorator;
use Slim\Http\Response;
use Slim\Http\Factory\DecoratedResponseFactory;
use Slim\Tests\Http\Providers\Psr17FactoryProvider;
use Slim\Tests\Http\Test;

class ResponseDecoratorTest extends Test
class ResponseTest extends TestCase
{
public function testDisableSetter()
{
Expand Down Expand Up @@ -354,8 +353,8 @@ public function testIsServerError()

public function testToString()
{
$output = 'HTTP/1.1 404 Not Found' . ResponseDecorator::EOL .
'X-Foo: Bar' . ResponseDecorator::EOL . ResponseDecorator::EOL .
$output = 'HTTP/1.1 404 Not Found' . Response::EOL .
'X-Foo: Bar' . Response::EOL . Response::EOL .
'Where am I?';

$expectedOutputString = '';
Expand Down Expand Up @@ -391,7 +390,7 @@ public function testWithJson()
$provider->getStreamFactory()
);

/** @var ResponseDecorator $originalResponse */
/** @var Response $originalResponse */
$originalResponse = $decoratedResponseFactory->createResponse(503);
$response = $originalResponse->withJson($data, 201);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@
* @copyright Copyright (c) 2011-2018 Josh Lockhart
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE (MIT License)
*/
namespace Slim\Tests\Http\Decorators;
namespace Slim\Tests\Http;

use Slim\Http\Factory\DecoratedServerRequestFactory;
use Slim\Tests\Http\Providers\Psr17FactoryProvider;
use Slim\Tests\Http\Test;

/**
* Class ServerRequestDecoratorTest
* @package Slim\Tests\Http\Decorators
* Class ServerRequestTest
* @package Slim\Tests\Http
*/
class ServerRequestDecoratorTest extends Test
class ServerRequestTest extends TestCase
{
public function testDisableSetter()
{
Expand Down
9 changes: 4 additions & 5 deletions tests/Decorators/UriDecoratorTest.php → tests/UriTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@
* @copyright Copyright (c) 2011-2018 Josh Lockhart
* @license https://github.com/slimphp/Slim-Http/blob/master/LICENSE (MIT License)
*/
namespace Slim\Tests\Http\Decorators;
namespace Slim\Tests\Http;

use Slim\Http\Factory\DecoratedUriFactory;
use Slim\Tests\Http\Providers\Psr17FactoryProvider;
use Slim\Tests\Http\Test;

/**
* Class UriDecoratorTest
* @package Slim\Tests\Http\Decorators
* Class UriTest
* @package Slim\Tests\Http
*/
class UriDecoratorTest extends Test
class UriTest extends TestCase
{
public function testDisableSetter()
{
Expand Down

0 comments on commit 468ccb5

Please sign in to comment.