[PHP] better PHP symfony test (#14117)

* better php symfony test

* trigger build failure

* Revert "trigger build failure"

This reverts commit ed7a57ead2.

* update samples
This commit is contained in:
William Cheng
2022-11-25 15:01:02 +08:00
committed by GitHub
parent 9220e72674
commit 90a8b4effb
8 changed files with 902 additions and 3 deletions

View File

@@ -0,0 +1,87 @@
<?php
/**
* EnumStringModelTest
*
* PHP version 8.1.1
*
* @category Class
* @package OpenAPI\Server\Tests\Model
* @author openapi-generator contributors
* @link https://github.com/openapitools/openapi-generator
*/
/**
* OpenAPI Petstore
*
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Please update the test case below to test the model.
*/
namespace OpenAPI\Server\Model;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
/**
* EnumStringModelTest Class Doc Comment
*
* @category Class
* @description enum model
* @package OpenAPI\Server\Tests\Model
* @author openapi-generator contributors
* @link https://github.com/openapitools/openapi-generator
* @coversDefaultClass \OpenAPI\Server\Model\EnumStringModel
*/
class EnumStringModelTest extends TestCase
{
protected EnumStringModel|MockObject $object;
/**
* Setup before running any test case
*/
public static function setUpBeforeClass(): void
{
}
/**
* Setup before running each test case
*/
public function setUp(): void
{
$this->object = $this->getMockBuilder(EnumStringModel::class)->getMockForAbstractClass();
}
/**
* Clean up after running each test case
*/
public function tearDown(): void
{
}
/**
* Clean up after running all test cases
*/
public static function tearDownAfterClass(): void
{
}
/**
* @group integration
* @small
*/
public function testTestClassExists(): void
{
$this->assertTrue(class_exists(EnumStringModel::class));
$this->assertInstanceOf(EnumStringModel::class, $this->object);
}
}