-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathmodel_test.mustache
87 lines (77 loc) · 1.66 KB
/
model_test.mustache
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
{{#models}}
{{#model}}
/**
* {{classname}}Test
*
* PHP version 7.4
*
* @category Class
* @package {{invokerPackage}}
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
{{>partial_header}}
/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Please update the test case below to test the model.
*/
namespace {{invokerPackage}}\Test\Model;
use PHPUnit\Framework\TestCase;
/**
* {{classname}}Test Class Doc Comment
*
* @category Class
* @description {{description}}{{^description}}{{classname}}{{/description}}
* @package {{invokerPackage}}
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class {{classname}}Test extends TestCase
{
/**
* Setup before running any test case
*/
public static function setUpBeforeClass(): void
{
}
/**
* Setup before running each test case
*/
public function setUp(): void
{
}
/**
* Clean up after running each test case
*/
public function tearDown(): void
{
}
/**
* Clean up after running all test cases
*/
public static function tearDownAfterClass(): void
{
}
/**
* Test "{{classname}}"
*/
public function test{{classname}}()
{
// TODO: implement
self::markTestIncomplete('Not implemented');
}
{{#vars}}
/**
* Test attribute "{{name}}"
*/
public function testProperty{{nameInPascalCase}}()
{
// TODO: implement
self::markTestIncomplete('Not implemented');
}
{{/vars}}
}
{{/model}}
{{/models}}