[PHP] Improve: Make validation strict (#7724)

* Add test case which reproduce the problem

refs https://github.com/swagger-api/swagger-codegen/pull/7686#issuecomment-368200011
> 1. We should pass true as 3rd argument of in_array()

* Add test case for setter

* Strict validation

* Update samples

* Tweak expected value according to changes in #7723
This commit is contained in:
Akihito Nakano
2018-03-26 00:17:46 +09:00
committed by William Cheng
parent 6d88d073ca
commit d58835e571
8 changed files with 57 additions and 26 deletions

View File

@@ -83,6 +83,13 @@ class EnumTestTest extends \PHPUnit_Framework_TestCase
{
}
/**
* Test attribute "enum_string_required"
*/
public function testPropertyEnumStringRequired()
{
}
/**
* Test attribute "enum_integer"
*/