github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/openapi-generator/templates/php/api_test.mustache (about) 1 <?php 2 /** 3 * {{classname}}Test 4 * PHP version 5 5 * 6 * @category Class 7 * @package {{invokerPackage}} 8 * @author OpenAPI Generator team 9 * @link https://openapi-generator.tech 10 */ 11 12 {{>partial_header}} 13 /** 14 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 15 * https://openapi-generator.tech 16 * Please update the test case below to test the endpoint. 17 */ 18 19 namespace {{invokerPackage}}; 20 21 use \{{invokerPackage}}\Configuration; 22 use \{{invokerPackage}}\ApiException; 23 use \{{invokerPackage}}\ObjectSerializer; 24 use PHPUnit\Framework\TestCase; 25 26 /** 27 * {{classname}}Test Class Doc Comment 28 * 29 * @category Class 30 * @package {{invokerPackage}} 31 * @author OpenAPI Generator team 32 * @link https://openapi-generator.tech 33 */ 34 {{#operations}}class {{classname}}Test extends TestCase 35 { 36 37 /** 38 * Setup before running any test cases 39 */ 40 public static function setUpBeforeClass() 41 { 42 } 43 44 /** 45 * Setup before running each test case 46 */ 47 public function setUp() 48 { 49 } 50 51 /** 52 * Clean up after running each test case 53 */ 54 public function tearDown() 55 { 56 } 57 58 /** 59 * Clean up after running all test cases 60 */ 61 public static function tearDownAfterClass() 62 { 63 } 64 {{#operation}} 65 66 /** 67 * Test case for {{{operationId}}} 68 * 69 * {{{summary}}}. 70 * 71 */ 72 public function test{{vendorExtensions.x-test-operation-id}}() 73 { 74 } 75 {{/operation}} 76 } 77 {{/operations}}