Skip to content

Commit 1be5d6a

Browse files
committed
vendor/bin/phpunit --migrate-configuration -c src/Template/phpunit.xml.dist
1 parent c5ae210 commit 1be5d6a

File tree

1 file changed

+67
-93
lines changed

1 file changed

+67
-93
lines changed

src/Template/phpunit.xml.dist

Lines changed: 67 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,76 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
4-
bootstrap="vendor/codeigniter4/framework/system/Test/bootstrap.php"
5-
backupGlobals="false"
6-
beStrictAboutCoversAnnotation="true"
7-
beStrictAboutOutputDuringTests="true"
8-
beStrictAboutTodoAnnotatedTests="true"
9-
colors="true"
10-
convertErrorsToExceptions="true"
11-
convertNoticesToExceptions="true"
12-
convertWarningsToExceptions="true"
13-
executionOrder="random"
14-
failOnRisky="true"
15-
failOnWarning="true"
16-
stopOnError="false"
17-
stopOnFailure="false"
18-
stopOnIncomplete="false"
19-
stopOnSkipped="false"
20-
verbose="true">
21-
22-
<coverage includeUncoveredFiles="true" processUncoveredFiles="true">
23-
<include>
24-
<directory suffix=".php">./app/</directory>
25-
</include>
26-
<exclude>
27-
<directory suffix=".php">./app/Config</directory>
28-
<directory suffix=".php">./app/Views</directory>
29-
</exclude>
30-
<report>
31-
<clover outputFile="build/phpunit/clover.xml"/>
32-
<html outputDirectory="build/phpunit/html"/>
33-
<php outputFile="build/phpunit/coverage.serialized"/>
34-
<text outputFile="php://stdout" showUncoveredFiles="false"/>
35-
<xml outputDirectory="build/phpunit/xml-coverage"/>
36-
</report>
37-
</coverage>
38-
39-
<testsuites>
40-
<testsuite name="main">
41-
<directory>./tests</directory>
42-
</testsuite>
43-
</testsuites>
44-
45-
<extensions>
46-
<extension class="Nexus\PHPUnit\Extension\Tachycardia">
47-
<arguments>
48-
<array>
49-
<element key="timeLimit">
50-
<double>0.50</double>
51-
</element>
52-
<element key="reportable">
53-
<integer>30</integer>
54-
</element>
55-
<element key="precision">
56-
<integer>2</integer>
57-
</element>
58-
<element key="collectBare">
59-
<boolean>true</boolean>
60-
</element>
61-
<element key="tabulate">
62-
<boolean>true</boolean>
63-
</element>
64-
</array>
65-
</arguments>
66-
</extension>
67-
</extensions>
68-
69-
<logging>
70-
<testdoxHtml outputFile="build/phpunit/testdox.html"/>
71-
<testdoxText outputFile="build/phpunit/testdox.txt"/>
72-
<junit outputFile="build/phpunit/junit.xml"/>
73-
</logging>
74-
75-
<php>
76-
<env name="XDEBUG_MODE" value="coverage"/>
77-
<server name="app.baseURL" value="https://example.com/"/>
78-
79-
<!-- Directory containing phpunit.xml -->
80-
<const name="HOMEPATH" value="./"/>
81-
82-
<!-- Directory containing the Paths config file -->
83-
<const name="CONFIGPATH" value="./app/Config/"/>
84-
85-
<!-- Directory containing the front controller (index.php) -->
86-
<const name="PUBLICPATH" value="./public/"/>
87-
88-
<!-- https://getcomposer.org/xdebug -->
89-
<env name="COMPOSER_DISABLE_XDEBUG_WARN" value="1"/>
90-
91-
<!-- Database configuration -->
92-
<env name="database.tests.strictOn" value="true"/>
93-
<!-- Uncomment to use alternate testing database configuration
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/codeigniter4/framework/system/Test/bootstrap.php" backupGlobals="false" beStrictAboutOutputDuringTests="true" colors="true" executionOrder="random" failOnRisky="true" failOnWarning="true" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" cacheDirectory=".phpunit.cache" beStrictAboutCoverageMetadata="true">
3+
<coverage includeUncoveredFiles="true">
4+
<report>
5+
<clover outputFile="build/phpunit/clover.xml"/>
6+
<html outputDirectory="build/phpunit/html"/>
7+
<php outputFile="build/phpunit/coverage.serialized"/>
8+
<text outputFile="php://stdout" showUncoveredFiles="false"/>
9+
<xml outputDirectory="build/phpunit/xml-coverage"/>
10+
</report>
11+
</coverage>
12+
<testsuites>
13+
<testsuite name="main">
14+
<directory>./tests</directory>
15+
</testsuite>
16+
</testsuites>
17+
<extensions>
18+
<extension class="Nexus\PHPUnit\Extension\Tachycardia">
19+
<arguments>
20+
<array>
21+
<element key="timeLimit">
22+
<double>0.50</double>
23+
</element>
24+
<element key="reportable">
25+
<integer>30</integer>
26+
</element>
27+
<element key="precision">
28+
<integer>2</integer>
29+
</element>
30+
<element key="collectBare">
31+
<boolean>true</boolean>
32+
</element>
33+
<element key="tabulate">
34+
<boolean>true</boolean>
35+
</element>
36+
</array>
37+
</arguments>
38+
</extension>
39+
</extensions>
40+
<logging>
41+
<testdoxHtml outputFile="build/phpunit/testdox.html"/>
42+
<testdoxText outputFile="build/phpunit/testdox.txt"/>
43+
<junit outputFile="build/phpunit/junit.xml"/>
44+
</logging>
45+
<php>
46+
<env name="XDEBUG_MODE" value="coverage"/>
47+
<server name="app.baseURL" value="https://example.com/"/>
48+
<!-- Directory containing phpunit.xml -->
49+
<const name="HOMEPATH" value="./"/>
50+
<!-- Directory containing the Paths config file -->
51+
<const name="CONFIGPATH" value="./app/Config/"/>
52+
<!-- Directory containing the front controller (index.php) -->
53+
<const name="PUBLICPATH" value="./public/"/>
54+
<!-- https://getcomposer.org/xdebug -->
55+
<env name="COMPOSER_DISABLE_XDEBUG_WARN" value="1"/>
56+
<!-- Database configuration -->
57+
<env name="database.tests.strictOn" value="true"/>
58+
<!-- Uncomment to use alternate testing database configuration
9459
<env name="database.tests.hostname" value="localhost"/>
9560
<env name="database.tests.database" value="tests"/>
9661
<env name="database.tests.username" value="tests_user"/>
9762
<env name="database.tests.password" value=""/>
9863
<env name="database.tests.DBDriver" value="MySQLi"/>
9964
<env name="database.tests.DBPrefix" value="tests_"/>
10065
-->
101-
</php>
66+
</php>
67+
<source>
68+
<include>
69+
<directory suffix=".php">./app/</directory>
70+
</include>
71+
<exclude>
72+
<directory suffix=".php">./app/Config</directory>
73+
<directory suffix=".php">./app/Views</directory>
74+
</exclude>
75+
</source>
10276
</phpunit>

0 commit comments

Comments
 (0)