Skip to content

Commit be14e02

Browse files
ackintoshwing328
authored andcommitted
[PHP] Cleanup test (#7673)
* 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
1 parent 14e1e19 commit be14e02

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1061
-1261
lines changed

samples/client/petstore/php/SwaggerClient-php/test/Api/AnotherFakeApiTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* OpenAPI spec version: 1.0.0
1818
* Contact: [email protected]
1919
* Generated by: https://github.com/swagger-api/swagger-codegen.git
20-
*
20+
* Swagger Codegen version: 2.4.0-SNAPSHOT
2121
*/
2222

2323
/**

samples/client/petstore/php/SwaggerClient-php/test/Api/FakeApiTest.php

+77-28
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,19 @@
55
*
66
* @category Class
77
* @package Swagger\Client
8-
* @author http://github.com/swagger-api/swagger-codegen
9-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2
8+
* @author Swagger Codegen team
109
* @link https://github.com/swagger-api/swagger-codegen
1110
*/
1211

1312
/**
14-
* Swagger Petstore =end
13+
* Swagger Petstore
1514
*
16-
* 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
15+
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
1716
*
18-
* OpenAPI spec version: 1.0.0 =end
19-
* Contact: [email protected] =end
17+
* OpenAPI spec version: 1.0.0
18+
* Contact: [email protected]
2019
* Generated by: https://github.com/swagger-api/swagger-codegen.git
21-
*
22-
* Licensed under the Apache License, Version 2.0 (the "License");
23-
* you may not use this file except in compliance with the License.
24-
* You may obtain a copy of the License at
25-
*
26-
* http://www.apache.org/licenses/LICENSE-2.0
27-
*
28-
* Unless required by applicable law or agreed to in writing, software
29-
* distributed under the License is distributed on an "AS IS" BASIS,
30-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31-
* See the License for the specific language governing permissions and
32-
* limitations under the License.
20+
* Swagger Codegen version: 2.4.0-SNAPSHOT
3321
*/
3422

3523
/**
@@ -41,7 +29,6 @@
4129
namespace Swagger\Client;
4230

4331
use \Swagger\Client\Configuration;
44-
use \Swagger\Client\ApiClient;
4532
use \Swagger\Client\ApiException;
4633
use \Swagger\Client\ObjectSerializer;
4734

@@ -50,8 +37,7 @@
5037
*
5138
* @category Class
5239
* @package Swagger\Client
53-
* @author http://github.com/swagger-api/swagger-codegen
54-
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2
40+
* @author Swagger Codegen team
5541
* @link https://github.com/swagger-api/swagger-codegen
5642
*/
5743
class FakeApiTest extends \PHPUnit_Framework_TestCase
@@ -62,31 +48,77 @@ class FakeApiTest extends \PHPUnit_Framework_TestCase
6248
*/
6349
public static function setUpBeforeClass()
6450
{
65-
6651
}
6752

6853
/**
6954
* Setup before running each test case
7055
*/
7156
public function setUp()
7257
{
73-
7458
}
7559

7660
/**
7761
* Clean up after running each test case
7862
*/
7963
public function tearDown()
8064
{
81-
8265
}
8366

8467
/**
8568
* Clean up after running all test cases
8669
*/
8770
public static function tearDownAfterClass()
8871
{
72+
}
8973

74+
/**
75+
* Test case for fakeOuterBooleanSerialize
76+
*
77+
* .
78+
*
79+
*/
80+
public function testFakeOuterBooleanSerialize()
81+
{
82+
}
83+
84+
/**
85+
* Test case for fakeOuterCompositeSerialize
86+
*
87+
* .
88+
*
89+
*/
90+
public function testFakeOuterCompositeSerialize()
91+
{
92+
}
93+
94+
/**
95+
* Test case for fakeOuterNumberSerialize
96+
*
97+
* .
98+
*
99+
*/
100+
public function testFakeOuterNumberSerialize()
101+
{
102+
}
103+
104+
/**
105+
* Test case for fakeOuterStringSerialize
106+
*
107+
* .
108+
*
109+
*/
110+
public function testFakeOuterStringSerialize()
111+
{
112+
}
113+
114+
/**
115+
* Test case for testClientModel
116+
*
117+
* To test \"client\" model.
118+
*
119+
*/
120+
public function testTestClientModel()
121+
{
90122
}
91123

92124
/**
@@ -97,18 +129,35 @@ public static function tearDownAfterClass()
97129
*/
98130
public function testTestEndpointParameters()
99131
{
100-
101132
}
102133

103134
/**
104-
* Test case for testEnumQueryParameters
135+
* Test case for testEnumParameters
105136
*
106-
* To test enum query parameters.
137+
* To test enum parameters.
107138
*
108139
*/
109-
public function testTestEnumQueryParameters()
140+
public function testTestEnumParameters()
110141
{
142+
}
111143

144+
/**
145+
* Test case for testInlineAdditionalProperties
146+
*
147+
* test inline additionalProperties.
148+
*
149+
*/
150+
public function testTestInlineAdditionalProperties()
151+
{
112152
}
113153

154+
/**
155+
* Test case for testJsonFormData
156+
*
157+
* test json serialization of form data.
158+
*
159+
*/
160+
public function testTestJsonFormData()
161+
{
162+
}
114163
}

samples/client/petstore/php/SwaggerClient-php/test/Api/FakeClassnameTags123ApiTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* OpenAPI spec version: 1.0.0
1818
* Contact: [email protected]
1919
* Generated by: https://github.com/swagger-api/swagger-codegen.git
20-
*
20+
* Swagger Codegen version: 2.4.0-SNAPSHOT
2121
*/
2222

2323
/**

samples/client/petstore/php/SwaggerClient-php/test/Api/Fake_classname_tags123ApiTest.php

-83
This file was deleted.

0 commit comments

Comments
 (0)