|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 |
| -<phpunit bootstrap="vendor/autoload.php" |
3 |
| - convertErrorsToExceptions="true" |
4 |
| - convertNoticesToExceptions="true" |
5 |
| - convertWarningsToExceptions="true"> |
6 |
| - <php> |
7 |
| - <ini name="error_reporting" value="-1" /> |
8 |
| - |
9 |
| - <const name="WINDWALKER_TEST_HTTP_URL" value="http://localhost:8100" /> |
10 |
| - |
11 |
| - <const name="WINDWALKER_TEST_DB_DSN_MYSQL" value="host=127.0.0.1;dbname=windwalker_test;user=root;password=ut1234;prefix=ww_" /> |
12 |
| - <const name="WINDWALKER_TEST_DB_DSN_POSTGRESQL" value="host=127.0.0.1;dbname=windwalker_test;user=postgres;password=ut1234;prefix=ww_" /> |
| 2 | +<phpunit |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + bootstrap="vendor/autoload.php" |
| 5 | + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd" |
| 6 | + cacheDirectory=".phpunit.cache"> |
| 7 | + <coverage/> |
| 8 | + <php> |
| 9 | + <ini name="error_reporting" value="-1"/> |
| 10 | + <const name="WINDWALKER_TEST_HTTP_URL" value="http://localhost:8100"/> |
| 11 | + <const name="WINDWALKER_TEST_DB_DSN_MYSQL" |
| 12 | + value="host=127.0.0.1;dbname=windwalker_test;user=root;password=ut1234;prefix=ww_"/> |
| 13 | + <const name="WINDWALKER_TEST_DB_DSN_POSTGRESQL" |
| 14 | + value="host=127.0.0.1;dbname=windwalker_test;user=postgres;password=ut1234;prefix=ww_"/> |
13 | 15 | <!--<const name="WINDWALKER_TEST_DB_DSN_ORACLE" value="host=localhost;port=5432;dbname=windwalker_test;user=root;password=ut1234;prefix=ww_" />-->
|
14 | 16 | <!--<const name="WINDWALKER_TEST_DB_DSN_SQLSERVER" value="host=localhost;port=1521;dbname=windwalker_test;user=root;password=ut1234;prefix=ww_" />-->
|
15 |
| - <const name="WINDWALKER_TEST_DB_DSN_SQLITE" value="dbname=tmp/test.db;prefix=ww_" /> |
16 |
| - |
17 |
| - <env name="REDIS_ENABLED" value="1" /> |
18 |
| - <env name="MEMCACHED_ENABLED" value="1" /> |
19 |
| - <env name="SWOOLE_ENABLED" value="1" /> |
20 |
| - </php> |
21 |
| - <testsuites> |
22 |
| - <testsuite name="Unit"> |
23 |
| - <directory>packages/*/test</directory> |
24 |
| - </testsuite> |
25 |
| - </testsuites> |
26 |
| - |
27 |
| - <filter> |
28 |
| - <whitelist processUncoveredFilesFromWhitelist="true"> |
29 |
| - <directory suffix=".php">packages</directory> |
30 |
| - <exclude> |
31 |
| - <directory suffix=".php">packages/*/test</directory> |
32 |
| - <directory suffix=".php">packages/*/.ide</directory> |
33 |
| - <directory suffix=".php">packages/*/resources</directory> |
34 |
| - </exclude> |
35 |
| - </whitelist> |
36 |
| - </filter> |
37 |
| - |
38 |
| -<!-- <logging>--> |
39 |
| -<!-- <log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>--> |
40 |
| -<!-- </logging>--> |
| 17 | + <const name="WINDWALKER_TEST_DB_DSN_SQLITE" value="dbname=tmp/test.db;prefix=ww_"/> |
| 18 | + <env name="REDIS_ENABLED" value="1"/> |
| 19 | + <env name="MEMCACHED_ENABLED" value="1"/> |
| 20 | + <env name="SWOOLE_ENABLED" value="1"/> |
| 21 | + </php> |
| 22 | + <testsuites> |
| 23 | + <testsuite name="Unit"> |
| 24 | + <directory>packages/*/test</directory> |
| 25 | + </testsuite> |
| 26 | + </testsuites> |
| 27 | + <!-- <logging>--> |
| 28 | + <!-- <log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>--> |
| 29 | + <!-- </logging>--> |
| 30 | + <source> |
| 31 | + <include> |
| 32 | + <directory suffix=".php">packages</directory> |
| 33 | + </include> |
| 34 | + <exclude> |
| 35 | + <directory suffix=".php">packages/*/test</directory> |
| 36 | + <directory suffix=".php">packages/*/.ide</directory> |
| 37 | + <directory suffix=".php">packages/*/resources</directory> |
| 38 | + </exclude> |
| 39 | + </source> |
41 | 40 | </phpunit>
|
0 commit comments