-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpunit.xml.dist
56 lines (56 loc) · 1.87 KB
/
phpunit.xml.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheDirectory=".build/phpunit.cache"
colors="true"
beStrictAboutCoverageMetadata="true"
>
<testsuites>
<testsuite name="php-oauth-core">
<directory>tests/Core</directory>
</testsuite>
<testsuite name="php-oauth-core token storage">
<directory>tests/Storage</directory>
</testsuite>
<testsuite name="php-oauth-providers unit tests">
<directory>tests/Providers/Unit</directory>
</testsuite>
<testsuite name="php-oauth-providers live API tests">
<directory>tests/Providers/Live</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>src</directory>
</include>
</source>
<coverage>
<report>
<clover outputFile=".build/coverage/clover.xml"/>
<xml outputDirectory=".build/coverage/coverage-xml"/>
</report>
</coverage>
<groups>
<exclude>
<!--
<group>slow</group>
<group>shortTokenExpiry</group>
-->
<group>providerLiveTest</group>
</exclude>
</groups>
<php>
<!-- whether the test runs on CI - set to false to allow live API tests to run -->
<const name="TEST_IS_CI" value="true"/>
<!-- the filename of your .env file in the config dir [project root]/.config -->
<const name="TEST_ENVFILE" value=".env_example"/>
<!-- the http client factory for live api tests -->
<const name="HTTP_CLIENT_FACTORY" value="chillerlan\PHPUnitHttp\GuzzleHttpClientFactory"/>
<!-- PSR-17 factories to use in tests -->
<const name="REQUEST_FACTORY" value="GuzzleHttp\Psr7\HttpFactory"/>
<const name="RESPONSE_FACTORY" value="GuzzleHttp\Psr7\HttpFactory"/>
<const name="STREAM_FACTORY" value="GuzzleHttp\Psr7\HttpFactory"/>
<const name="URI_FACTORY" value="GuzzleHttp\Psr7\HttpFactory"/>
</php>
</phpunit>