|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 |
| -<phpunit bootstrap="tests/_support/_bootstrap.php" |
3 |
| - backupGlobals="false" |
4 |
| - colors="true" |
5 |
| - convertErrorsToExceptions="true" |
6 |
| - convertNoticesToExceptions="true" |
7 |
| - convertWarningsToExceptions="true" |
8 |
| - stopOnError="false" |
9 |
| - stopOnFailure="false" |
10 |
| - stopOnIncomplete="false" |
11 |
| - stopOnSkipped="false"> |
12 |
| - <testsuites> |
13 |
| - <testsuite name="app"> |
14 |
| - <directory>./tests</directory> |
15 |
| - </testsuite> |
16 |
| - </testsuites> |
17 |
| - |
18 |
| - <php> |
19 |
| - <env name="app.baseURL" value="http://example.com"/> |
20 |
| - </php> |
| 2 | +<phpunit bootstrap="system/Test/bootstrap.php" |
| 3 | + backupGlobals="false" |
| 4 | + colors="true" |
| 5 | + convertErrorsToExceptions="true" |
| 6 | + convertNoticesToExceptions="true" |
| 7 | + convertWarningsToExceptions="true" |
| 8 | + stopOnError="false" |
| 9 | + stopOnFailure="false" |
| 10 | + stopOnIncomplete="false" |
| 11 | + stopOnSkipped="false"> |
| 12 | + <testsuites> |
| 13 | + <testsuite name="app"> |
| 14 | + <directory>./tests</directory> |
| 15 | + </testsuite> |
| 16 | + </testsuites> |
21 | 17 |
|
| 18 | + <filter> |
| 19 | + <whitelist addUncoveredFilesFromWhitelist="true" processUncoveredFilesFromWhitelist="true"> |
| 20 | + <directory suffix=".php">./app</directory> |
| 21 | + <exclude> |
| 22 | + <directory suffix=".php">./app/Views</directory> |
| 23 | + <file>./app/Config/Routes.php</file> |
| 24 | + </exclude> |
| 25 | + </whitelist> |
| 26 | + </filter> |
| 27 | + |
| 28 | + <logging> |
| 29 | + <log type="coverage-html" target="build/logs/html"/> |
| 30 | + <log type="coverage-clover" target="build/logs/clover.xml"/> |
| 31 | + <log type="coverage-php" target="build/logs/coverage.serialized"/> |
| 32 | + <log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/> |
| 33 | + <log type="testdox-html" target="build/logs/testdox.html"/> |
| 34 | + <log type="testdox-text" target="build/logs/testdox.txt"/> |
| 35 | + <log type="junit" target="build/logs/logfile.xml"/> |
| 36 | + </logging> |
| 37 | + |
| 38 | + <php> |
| 39 | + <server name="app.baseURL" value="http://example.com"/> |
| 40 | + |
| 41 | + <!-- Directory containing phpunit.xml --> |
| 42 | + <const name="HOMEPATH" value="./"/> |
| 43 | + |
| 44 | + <!-- Directory containing the Paths config file --> |
| 45 | + <const name="CONFIGPATH" value="./app/Config/"/> |
| 46 | + |
| 47 | + <!-- Directory containing the front controller (index.php) --> |
| 48 | + <const name="PUBLICPATH" value="./public/"/> |
| 49 | + |
| 50 | + <!-- Database configuration --> |
| 51 | +<!-- <env name="database.tests.hostname" value="localhost"/> --> |
| 52 | +<!-- <env name="database.tests.database" value="tests"/> --> |
| 53 | +<!-- <env name="database.tests.username" value="tests_user"/> --> |
| 54 | +<!-- <env name="database.tests.password" value=""/> --> |
| 55 | +<!-- <env name="database.tests.DBDriver" value="MySQLi"/> --> |
| 56 | +<!-- <env name="database.tests.DBPrefix" value="tests_"/> --> |
| 57 | + <env name="database.tests.database" value=":memory:"/> |
| 58 | + <env name="database.tests.DBDriver" value="SQLite3"/> |
| 59 | + </php> |
22 | 60 | </phpunit>
|
0 commit comments