mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-20 16:41:05 +00:00
* Remove package from sources * Add Mocker package * Add BaseModel Beside setters and getters this class implements three methods required for mocking: getOpenApiSchema, createFromData and jsonSerialize. BaseModel keeps all data values in $dataContainer like PHP client does. I don't see other way to support scalar models(enum for instance). That's why I've removed class variables generation. * Update documentation * Update PHPUnit section in readme * Add constant with models namespace This constant will be required for data deserialization when handling refs. * Refresh samples * Add samples generation config
33 lines
1.1 KiB
XML
33 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<phpunit
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/4.8/phpunit.xsd"
|
|
bootstrap="./vendor/autoload.php"
|
|
colors="true"
|
|
convertErrorsToExceptions="true"
|
|
convertNoticesToExceptions="true"
|
|
convertWarningsToExceptions="true"
|
|
beStrictAboutTestsThatDoNotTestAnything="false"
|
|
stopOnFailure="false"
|
|
>
|
|
<testsuites>
|
|
<testsuite name="Apis">
|
|
<directory>./test/Api</directory>
|
|
</testsuite>
|
|
<testsuite name="Models">
|
|
<file>./test/BaseModelTest.php</file>
|
|
<directory>./test/Model</directory>
|
|
</testsuite>
|
|
</testsuites>
|
|
<filter>
|
|
<whitelist processUncoveredFilesFromWhitelist="true">
|
|
<directory suffix=".php">./lib/Api</directory>
|
|
<file>./lib/BaseModel.php</file>
|
|
<directory suffix=".php">./lib/Model</directory>
|
|
</whitelist>
|
|
</filter>
|
|
<php>
|
|
<ini name="error_reporting" value="E_ALL" />
|
|
</php>
|
|
</phpunit>
|