Skip to content

Commit

Permalink
[PHP] Cleanup test (#7673)
Browse files Browse the repository at this point in the history
* Regenerate PetApiTest, OrderTest

The same test code as deleted is in the 'tests' directory.

* Move test code 'test' -> 'tests', and Regenerate test/Model/PetTest.php

* Regenerate 'test' directory

rm -rf samples/client/petstore/php/SwaggerClient-php/test && bin/php-petstore.sh
  • Loading branch information
ackintosh authored and wing328 committed Feb 22, 2018
1 parent 14e1e19 commit be14e02
Show file tree
Hide file tree
Showing 45 changed files with 1,061 additions and 1,261 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.0-SNAPSHOT
*/

/**
Expand Down
105 changes: 77 additions & 28 deletions samples/client/petstore/php/SwaggerClient-php/test/Api/FakeApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,19 @@
*
* @category Class
* @package Swagger\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/

/**
* Swagger Petstore =end
* Swagger Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ =end
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0 =end
* Contact: apiteam@swagger.io =end
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* Swagger Codegen version: 2.4.0-SNAPSHOT
*/

/**
Expand All @@ -41,7 +29,6 @@
namespace Swagger\Client;

use \Swagger\Client\Configuration;
use \Swagger\Client\ApiClient;
use \Swagger\Client\ApiException;
use \Swagger\Client\ObjectSerializer;

Expand All @@ -50,8 +37,7 @@
*
* @category Class
* @package Swagger\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
class FakeApiTest extends \PHPUnit_Framework_TestCase
Expand All @@ -62,31 +48,77 @@ class FakeApiTest extends \PHPUnit_Framework_TestCase
*/
public static function setUpBeforeClass()
{

}

/**
* Setup before running each test case
*/
public function setUp()
{

}

/**
* Clean up after running each test case
*/
public function tearDown()
{

}

/**
* Clean up after running all test cases
*/
public static function tearDownAfterClass()
{
}

/**
* Test case for fakeOuterBooleanSerialize
*
* .
*
*/
public function testFakeOuterBooleanSerialize()
{
}

/**
* Test case for fakeOuterCompositeSerialize
*
* .
*
*/
public function testFakeOuterCompositeSerialize()
{
}

/**
* Test case for fakeOuterNumberSerialize
*
* .
*
*/
public function testFakeOuterNumberSerialize()
{
}

/**
* Test case for fakeOuterStringSerialize
*
* .
*
*/
public function testFakeOuterStringSerialize()
{
}

/**
* Test case for testClientModel
*
* To test \"client\" model.
*
*/
public function testTestClientModel()
{
}

/**
Expand All @@ -97,18 +129,35 @@ public static function tearDownAfterClass()
*/
public function testTestEndpointParameters()
{

}

/**
* Test case for testEnumQueryParameters
* Test case for testEnumParameters
*
* To test enum query parameters.
* To test enum parameters.
*
*/
public function testTestEnumQueryParameters()
public function testTestEnumParameters()
{
}

/**
* Test case for testInlineAdditionalProperties
*
* test inline additionalProperties.
*
*/
public function testTestInlineAdditionalProperties()
{
}

/**
* Test case for testJsonFormData
*
* test json serialization of form data.
*
*/
public function testTestJsonFormData()
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* OpenAPI spec version: 1.0.0
* Contact: apiteam@swagger.io
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.0-SNAPSHOT
*/

/**
Expand Down

This file was deleted.

Loading

0 comments on commit be14e02

Please sign in to comment.