Skip to content

Commit

Permalink
Fix ssl path and phpunit (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
ezerozen authored Jul 18, 2023
1 parent d7a92d8 commit f97f566
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion templates/php/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ use {{invokerPackage}}\ObjectSerializer;
throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile());
}
}
$options[RequestOptions::SSL_KEY] = __DIR__ . '/../ssl_data/ca_bundle.crt';
$options[RequestOptions::SSL_KEY] = dirname(__DIR__, 1) . '/ssl_data/ca_bundle.crt';

return $options;
}
Expand Down
16 changes: 16 additions & 0 deletions templates/php/phpunit.xml.mustache
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">{{apiSrcPath}}</directory>
</include>
</coverage>
<testsuites>
<testsuite name="tests">
<directory>{{apiTestPath}}</directory>
</testsuite>
</testsuites>
<php>
<ini name="error_reporting" value="E_ALL"/>
</php>
</phpunit>

0 comments on commit f97f566

Please sign in to comment.