forked from loafle/openapi-generator-original
		
	* Bump required PHP version to 7.2 * Update rest dependencies to meet php 7.2 Latest phpunit 9 requires PHP 7.3, so I've set phpunit 8 as a fallback. * Fix TestCase inheritance * Add phpunit cache file to gitignore * Put license @phpdoc into separate mustache * Bump readme PHP version to 7.2 * Bump @phpdoc PHP version to 7.2 * Update Zend Diactoros with suggested package * Refresh samples * Remove broken tests These tests will be fixed in next PR which moves Mock feature to external repo. * Point root Travis CI environment to PHP 7.3
		
			
				
	
	
		
			381 lines
		
	
	
		
			9.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			381 lines
		
	
	
		
			9.4 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
/**
 | 
						|
 * OpenAPI Petstore
 | 
						|
 * PHP version 7.2
 | 
						|
 *
 | 
						|
 * @package OpenAPIServer
 | 
						|
 * @author  OpenAPI Generator team
 | 
						|
 * @link    https://github.com/openapitools/openapi-generator
 | 
						|
 */
 | 
						|
 | 
						|
/**
 | 
						|
 * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
 | 
						|
 * 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 OpenAPIServer\Model;
 | 
						|
 | 
						|
use PHPUnit\Framework\TestCase;
 | 
						|
use OpenAPIServer\Model\XmlItem;
 | 
						|
 | 
						|
/**
 | 
						|
 * XmlItemTest Class Doc Comment
 | 
						|
 *
 | 
						|
 * @package OpenAPIServer\Model
 | 
						|
 * @author  OpenAPI Generator team
 | 
						|
 * @link    https://github.com/openapitools/openapi-generator
 | 
						|
 *
 | 
						|
 * @coversDefaultClass \OpenAPIServer\Model\XmlItem
 | 
						|
 */
 | 
						|
class XmlItemTest extends TestCase
 | 
						|
{
 | 
						|
 | 
						|
    /**
 | 
						|
     * Setup before running any test cases
 | 
						|
     */
 | 
						|
    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 "XmlItem"
 | 
						|
     */
 | 
						|
    public function testXmlItem()
 | 
						|
    {
 | 
						|
        $testXmlItem = new XmlItem();
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "attributeString"
 | 
						|
     */
 | 
						|
    public function testPropertyAttributeString()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "attributeString" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "attributeNumber"
 | 
						|
     */
 | 
						|
    public function testPropertyAttributeNumber()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "attributeNumber" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "attributeInteger"
 | 
						|
     */
 | 
						|
    public function testPropertyAttributeInteger()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "attributeInteger" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "attributeBoolean"
 | 
						|
     */
 | 
						|
    public function testPropertyAttributeBoolean()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "attributeBoolean" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "wrappedArray"
 | 
						|
     */
 | 
						|
    public function testPropertyWrappedArray()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "wrappedArray" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "nameString"
 | 
						|
     */
 | 
						|
    public function testPropertyNameString()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "nameString" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "nameNumber"
 | 
						|
     */
 | 
						|
    public function testPropertyNameNumber()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "nameNumber" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "nameInteger"
 | 
						|
     */
 | 
						|
    public function testPropertyNameInteger()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "nameInteger" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "nameBoolean"
 | 
						|
     */
 | 
						|
    public function testPropertyNameBoolean()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "nameBoolean" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "nameArray"
 | 
						|
     */
 | 
						|
    public function testPropertyNameArray()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "nameArray" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "nameWrappedArray"
 | 
						|
     */
 | 
						|
    public function testPropertyNameWrappedArray()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "nameWrappedArray" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "prefixString"
 | 
						|
     */
 | 
						|
    public function testPropertyPrefixString()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "prefixString" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "prefixNumber"
 | 
						|
     */
 | 
						|
    public function testPropertyPrefixNumber()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "prefixNumber" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "prefixInteger"
 | 
						|
     */
 | 
						|
    public function testPropertyPrefixInteger()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "prefixInteger" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "prefixBoolean"
 | 
						|
     */
 | 
						|
    public function testPropertyPrefixBoolean()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "prefixBoolean" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "prefixArray"
 | 
						|
     */
 | 
						|
    public function testPropertyPrefixArray()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "prefixArray" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "prefixWrappedArray"
 | 
						|
     */
 | 
						|
    public function testPropertyPrefixWrappedArray()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "prefixWrappedArray" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "namespaceString"
 | 
						|
     */
 | 
						|
    public function testPropertyNamespaceString()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "namespaceString" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "namespaceNumber"
 | 
						|
     */
 | 
						|
    public function testPropertyNamespaceNumber()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "namespaceNumber" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "namespaceInteger"
 | 
						|
     */
 | 
						|
    public function testPropertyNamespaceInteger()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "namespaceInteger" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "namespaceBoolean"
 | 
						|
     */
 | 
						|
    public function testPropertyNamespaceBoolean()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "namespaceBoolean" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "namespaceArray"
 | 
						|
     */
 | 
						|
    public function testPropertyNamespaceArray()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "namespaceArray" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "namespaceWrappedArray"
 | 
						|
     */
 | 
						|
    public function testPropertyNamespaceWrappedArray()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "namespaceWrappedArray" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "prefixNsString"
 | 
						|
     */
 | 
						|
    public function testPropertyPrefixNsString()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "prefixNsString" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "prefixNsNumber"
 | 
						|
     */
 | 
						|
    public function testPropertyPrefixNsNumber()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "prefixNsNumber" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "prefixNsInteger"
 | 
						|
     */
 | 
						|
    public function testPropertyPrefixNsInteger()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "prefixNsInteger" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "prefixNsBoolean"
 | 
						|
     */
 | 
						|
    public function testPropertyPrefixNsBoolean()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "prefixNsBoolean" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "prefixNsArray"
 | 
						|
     */
 | 
						|
    public function testPropertyPrefixNsArray()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "prefixNsArray" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test attribute "prefixNsWrappedArray"
 | 
						|
     */
 | 
						|
    public function testPropertyPrefixNsWrappedArray()
 | 
						|
    {
 | 
						|
        $this->markTestIncomplete(
 | 
						|
            'Test of "prefixNsWrappedArray" property in "XmlItem" model has not been implemented yet.'
 | 
						|
        );
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * Test getOpenApiSchema static method
 | 
						|
     * @covers ::getOpenApiSchema
 | 
						|
     */
 | 
						|
    public function testGetOpenApiSchema()
 | 
						|
    {
 | 
						|
        $schemaObject = XmlItem::getOpenApiSchema();
 | 
						|
        $schemaArr = XmlItem::getOpenApiSchema(true);
 | 
						|
        $this->assertIsObject($schemaObject);
 | 
						|
        $this->assertIsArray($schemaArr);
 | 
						|
    }
 | 
						|
}
 |