Skip to content

Commit

Permalink
Update namespace of PHPUnit ("tests" folder)
Browse files Browse the repository at this point in the history
  • Loading branch information
ackintosh committed Nov 19, 2018
1 parent 739891e commit b3495ec
Show file tree
Hide file tree
Showing 20 changed files with 45 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

use OpenAPI\Client\Api\PetApi;
use OpenAPI\Client\Model\Pet;
use PHPUnit\Framework\TestCase;

class AsyncTest extends \PHPUnit_Framework_TestCase
class AsyncTest extends TestCase
{
/** @var PetApi */
private $api;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
use OpenAPI\Client\Api\FakeApi;
use OpenAPI\Client\Api\PetApi;
use OpenAPI\Client\Model\Pet;
use PHPUnit\Framework\TestCase;

require_once __DIR__ . '/FakeHttpClient.php';

class AuthTest extends \PHPUnit_Framework_TestCase
class AuthTest extends TestCase
{
public function testCustomApiKeyHeader()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace OpenAPI\Client;

use OpenAPI\Client\Model\FormatTest;
use PHPUnit\Framework\TestCase;

class DateTimeSerializerTest extends \PHPUnit_Framework_TestCase
class DateTimeSerializerTest extends TestCase
{
public function testDateTimeSanitazion()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?php
namespace OpenAPI\Client;

class DebugTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;

class DebugTest extends TestCase
{

public static function setUpBeforeClass()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace OpenAPI\Client;

use OpenAPI\Client\Model\EnumClass;
use PHPUnit\Framework\TestCase;

class EnumClassTest extends \PHPUnit_Framework_TestCase
class EnumClassTest extends TestCase
{
public function testPossibleValues()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace OpenAPI\Client;

use OpenAPI\Client\Model\EnumTest;
use PHPUnit\Framework\TestCase;

class EnumTestTest extends \PHPUnit_Framework_TestCase
class EnumTestTest extends TestCase
{
public function testPossibleValues()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace OpenAPI\Client;

use GuzzleHttp\Client;
use PHPUnit\Framework\TestCase;

class ExceptionTest extends \PHPUnit_Framework_TestCase
class ExceptionTest extends TestCase
{
/**
* @expectedException \OpenAPI\Client\ApiException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

namespace OpenAPI\Client;

class HeaderSelectorTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;

class HeaderSelectorTest extends TestCase
{
public function testSelectingHeaders()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

namespace OpenAPI\Client;

use PHPUnit\Framework\TestCase;

require_once __DIR__ . '/FakeHttpClient.php';

class HeadersTest extends \PHPUnit_Framework_TestCase
class HeadersTest extends TestCase
{
/** @var FakeHttpClient */
private $fakeHttpClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
use OpenAPI\Client\Model\AnimalFarm;
use OpenAPI\Client\Model\Cat;
use OpenAPI\Client\Model\Dog;
use PHPUnit\Framework\TestCase;

/**
* Test that Dog properly inherit Animal
*
* @package OpenAPI\Client
*/
class ModelInheritanceTest extends \PHPUnit_Framework_TestCase
class ModelInheritanceTest extends TestCase
{
/**
* test if default values works
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

namespace OpenAPI\Client;

use PHPUnit\Framework\TestCase;

// test object serializer
class ObjectSerializerTest extends \PHPUnit_Framework_TestCase
class ObjectSerializerTest extends TestCase
{
// test sanitizeFilename
public function testSanitizeFilename()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

namespace OpenAPI\Client;

class OrderApiTest extends \PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;

class OrderApiTest extends TestCase
{

// add a new pet (id 10005) to ensure the pet object is available for all the tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@

use OpenAPI\Client\Model\EnumTest;
use OpenAPI\Client\Model\OuterEnum;
use PHPUnit\Framework\TestCase;

class OuterEnumTest extends \PHPUnit_Framework_TestCase
class OuterEnumTest extends TestCase
{
public function testDeserialize()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

use OpenAPI\Client\Api\FakeApi;
use OpenAPI\Client\Api\UserApi;
use PHPUnit\Framework\TestCase;

require_once __DIR__ . '/FakeHttpClient.php';

class ParametersTest extends \PHPUnit_Framework_TestCase
class ParametersTest extends TestCase
{
/** @var FakeHttpClient */
private $fakeHttpClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
use OpenAPI\Client\Api\PetApi;
use OpenAPI\Client\Model\ApiResponse;
use OpenAPI\Client\Model\Pet;
use PHPUnit\Framework\TestCase;

class PetApiTest extends \PHPUnit_Framework_TestCase
class PetApiTest extends TestCase
{

/** @var PetApi */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace OpenAPI\Client;

use OpenAPI\Client\Model\Pet;
use PHPUnit\Framework\TestCase;

class PetTest extends \PHPUnit_Framework_TestCase
class PetTest extends TestCase
{
/**
* test empty object serialization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
namespace OpenAPI\Client;

use OpenAPI\Client\Api\FakeApi;
use PHPUnit\Framework\TestCase;

require_once __DIR__ . '/FakeHttpClient.php';

class RequestTest extends \PHPUnit_Framework_TestCase
class RequestTest extends TestCase
{
/** @var FakeApi */
private $api;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
use GuzzleHttp\Psr7\Response;
use OpenAPI\Client\Api\PetApi;
use OpenAPI\Client\Model\Pet;
use PHPUnit\Framework\TestCase;

require_once __DIR__ . '/FakeHttpClient.php';

class ResponseTypesTest extends \PHPUnit_Framework_TestCase
class ResponseTypesTest extends TestCase
{
/** @var PetApi */
private $api;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
use OpenAPI\Client\Model\Category;
use OpenAPI\Client\Model\Pet;
use OpenAPI\Client\Model\Tag;
use PHPUnit\Framework\TestCase;

class StoreApiTest extends \PHPUnit_Framework_TestCase
class StoreApiTest extends TestCase
{
/** @var StoreApi */
private $api;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace OpenAPI\Client;

use OpenAPI\Client\Api\UserApi;
use PHPUnit\Framework\TestCase;

class UserApiTest extends \PHPUnit_Framework_TestCase
class UserApiTest extends TestCase
{

/** @var UserApi*/
Expand Down

0 comments on commit b3495ec

Please sign in to comment.