This repository was archived by the owner on Mar 23, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpunit.xml.dist
52 lines (52 loc) · 2.01 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
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheResultFile=".build/phpunit.result.cache"
colors="true"
>
<testsuites>
<testsuite name="php-oauth-core test suite">
<directory>./tests</directory>
<exclude>tests/Live</exclude>
</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>
<logging>
<junit outputFile=".build/logs/junit.xml"/>
</logging>
<php>
<!-- whether the test runs on CI or not - set to false to allow live API tests to run -->
<const name="TEST_IS_CI" value="true"/>
<!-- the config directory, where .env, cacert.pem and test oauth tokens reside, relative from project root -->
<const name="TEST_CFGDIR" value="./config"/>
<!-- the filename of your .env file -->
<const name="TEST_ENVFILE" value=".env_example"/>
<!-- the http client factory for live api tests -->
<!--
<const name="TEST_CLIENT_FACTORY" value="chillerlan\OAuthTest\Providers\ChillerlanHttpClientFactory"/>
-->
<const name="TEST_CLIENT_FACTORY" value="chillerlan\OAuthTest\Providers\GuzzleHttpClientFactory"/>
<!-- PSR-17 factories to use in tests -->
<!--
<const name="REQUEST_FACTORY" value="chillerlan\HTTP\Psr17\RequestFactory"/>
<const name="RESPONSE_FACTORY" value="chillerlan\HTTP\Psr17\ResponseFactory"/>
<const name="STREAM_FACTORY" value="chillerlan\HTTP\Psr17\StreamFactory"/>
<const name="URI_FACTORY" value="chillerlan\HTTP\Psr17\UriFactory"/>
-->
<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>