forked from loafle/openapi-generator-original
* Fix problem with clients, that put charset in content type header. With this fix header "Content-Type: application/json; charset=utf-8" working same as "Content-Type: application/json" for parse input data * Fix code style, add $consumes length check. * Add isContentTypeAllowed static method and tests * Fix old tests Right now serializer doesn't support anything beside json and xml. Call tests with application/json instead of form data. Co-authored-by: Yuriy Belenko <yura-bely@mail.ru>
27 lines
919 B
XML
27 lines
919 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<phpunit bootstrap="./vendor/autoload.php"
|
|
colors="true"
|
|
convertErrorsToExceptions="true"
|
|
convertNoticesToExceptions="true"
|
|
convertWarningsToExceptions="true"
|
|
stopOnFailure="false">
|
|
<testsuites>
|
|
<testsuite>
|
|
<directory>./Tests/Api</directory>
|
|
<directory>./Tests/Model</directory>
|
|
<directory>./Tests/Controller</directory>
|
|
</testsuite>
|
|
</testsuites>
|
|
<filter>
|
|
<whitelist processUncoveredFilesFromWhitelist="true">
|
|
<directory suffix=".php">././Api</directory>
|
|
<directory suffix=".php">././Model</directory>
|
|
<directory suffix=".php">././Controller</directory>
|
|
</whitelist>
|
|
</filter>
|
|
<php>
|
|
<ini name="error_reporting" value="E_ALL" />
|
|
<server name="KERNEL_DIR" value="Tests/" />
|
|
</php>
|
|
</phpunit>
|