Files
openapi-generator/samples/client/petstore/php/OpenAPIClient-php/tests/EnumClassTest.php
T
Akihito Nakano 34abedeb8a [PHP] Bump minimum required version to PHP7.1 (#1491)
* Bump minimum required version to PHP7.1

ref: http://php.net/supported-versions.php

* Bump phpunit

* Update [api|model]_test.mustache

* Update samples

bin/openapi3/php-petstore.sh

* Update namespace of PHPUnit ("tests" folder)

* `setExpectedException` is deleted in PHPUnit 7.4

* Update namespace of "Assert" class

* The attribute 'name' is required

* Add anotation to exclude the test from risky testcheck

* Update samples (samples/client/petstore/php)

* Apply updates to "test" in openapi2 folder (samples/client/petstore/php)

https://github.com/OpenAPITools/openapi-generator/pull/1491/commits/b3495ecbfe94401b10e914a686631671684041ff
https://github.com/OpenAPITools/openapi-generator/pull/1491/commits/15e00ae89d4e4ca4f21f421225cb691552bfef46
https://github.com/OpenAPITools/openapi-generator/pull/1491/commits/2fc6917d13ff44769b9535b34e27b3a3d511d489
https://github.com/OpenAPITools/openapi-generator/pull/1491/commits/0d016c00ed511aa2dd81dd4f575931274a47ad39

* Install php7.1

* Switch to php7

* Update samples (security)

bin/security/php-petstore.sh
2018-11-26 08:59:22 +07:00

17 lines
351 B
PHP

<?php
namespace OpenAPI\Client;
use OpenAPI\Client\Model\EnumClass;
use PHPUnit\Framework\TestCase;
class EnumClassTest extends TestCase
{
public function testPossibleValues()
{
$this->assertSame(EnumClass::ABC, '_abc');
$this->assertSame(EnumClass::EFG, '-efg');
$this->assertSame(EnumClass::XYZ, '(xyz)');
}
}