* [Tests] Introduce client-server integration tests * Add an in-process loopback that connects a real client transport to a real server transport, draining both Fiber loops in one synchronous pass instead of polling. A stalled exchange fails where it happened rather than hanging. * Cover protocol version negotiation across both implementations, where the unit tests only ever drive one side against a canned counter-offer. * Cover the server-to-client round-trips end to end: elicitation, sampling, roots, plus progress and logging notifications. * Add the `integration` test suite and a `make integration-tests` target. * [Tests] Run the integration suite in CI The unit job pins `--testsuite=unit`, so the new suite would never have run on GitHub. It goes in that job rather than its own: the loopback leans on Fibers, and the matrix is what covers them down to the PHP 8.1 floor. * [Tests] Run integration tests against a real server process Replaces the in-process loopback with the setup from examples/client: the client spawns a fixture server over the real StdioTransport, so the tests exercise the shipped transports and no longer nest both sides' Fibers. Moves the suite into its own CI job, matrixed over PHP 8.1-8.5.
31 lines
1 KiB
XML
31 lines
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/10.0/phpunit.xsd"
|
|
cacheDirectory=".phpunit.cache"
|
|
colors="true"
|
|
executionOrder="depends,defects"
|
|
beStrictAboutOutputDuringTests="true"
|
|
failOnRisky="true"
|
|
failOnWarning="true">
|
|
|
|
<testsuites>
|
|
<testsuite name="unit">
|
|
<directory>tests/Unit</directory>
|
|
</testsuite>
|
|
<testsuite name="integration">
|
|
<directory>tests/Integration</directory>
|
|
</testsuite>
|
|
<testsuite name="examples">
|
|
<directory>examples/server/oauth-microsoft/tests</directory>
|
|
</testsuite>
|
|
<testsuite name="inspector">
|
|
<directory>tests/Inspector</directory>
|
|
</testsuite>
|
|
</testsuites>
|
|
|
|
<source restrictNotices="true" restrictWarnings="true">
|
|
<include>
|
|
<directory>src</directory>
|
|
</include>
|
|
</source>
|
|
</phpunit>
|