github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/openapi-generator/templates/php/model_test.mustache (about)

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