Skip to content

Commit 77b24fe

Browse files
committed
Composer 2.0: More ignores and updated PHPUnit config
With the updates and upgrades happening I reordered the .gitignore file and added a few more new elements that are not required in the package. I also updated the PHPUnit configuration so it uses the new syntax.
1 parent 2262c10 commit 77b24fe

File tree

2 files changed

+40
-39
lines changed

2 files changed

+40
-39
lines changed

.gitignore

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
vendor/
1+
/.scannerwork/
22
build/
3+
vendor/
4+
.phpunit.result.cache
35
composer.lock
4-
.scannerwork/
5-
6+
composer.phar

phpunit.xml

+36-36
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1+
<?xml version="1.0"?>
12
<phpunit
2-
colors="true"
3-
stopOnError="true"
4-
stopOnFailure="true"
5-
convertErrorsToExceptions="true"
6-
convertNoticesToExceptions="true"
7-
convertWarningsToExceptions="true"
8-
bootstrap="./vendor/autoload.php">
9-
10-
<testsuite name="Unit test suite">
11-
<directory>./tests</directory>
12-
</testsuite>
13-
14-
<filter>
15-
<whitelist>
16-
<directory suffix=".php">./src</directory>
17-
<!-- no need to test the autoloading -->
18-
<exclude>
19-
<file>./src/autoload.php</file>
20-
</exclude>
21-
</whitelist>
22-
</filter>
23-
24-
<php>
25-
<ini name="error_reporting" value="32767"/>
26-
<ini name="display_errors" value="1"/>
27-
<ini name="display_startup_errors" value="1"/>
28-
</php>
29-
30-
<logging>
31-
<log type="coverage-html" target="./build/coverage" lowUpperBound="35" highLowerBound="70"/>
32-
<log type="coverage-clover" target="./build/logs/clover.xml"/>
33-
<log type="junit" target="./build/logs/junit.xml"/>
34-
<log type="testdox-html" target="./build/logs/testdox.html"/>
35-
<log type="testdox-text" target="./build/logs/testdox.txt"/>
36-
</logging>
37-
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
colors="true"
5+
stopOnError="true"
6+
stopOnFailure="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
bootstrap="./vendor/autoload.php"
11+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
12+
>
13+
<coverage>
14+
<include>
15+
<directory suffix=".php">./src</directory>
16+
</include>
17+
<exclude>
18+
<file>./src/autoload.php</file>
19+
</exclude>
20+
<report>
21+
<clover outputFile="./build/logs/clover.xml"/>
22+
<html outputDirectory="./build/coverage" lowUpperBound="35" highLowerBound="70"/>
23+
</report>
24+
</coverage>
25+
<testsuite name="Unit test suite">
26+
<directory>./tests</directory>
27+
</testsuite>
28+
<php>
29+
<ini name="error_reporting" value="32767"/>
30+
<ini name="display_errors" value="1"/>
31+
<ini name="display_startup_errors" value="1"/>
32+
</php>
33+
<logging>
34+
<junit outputFile="./build/logs/junit.xml"/>
35+
<testdoxHtml outputFile="./build/logs/testdox.html"/>
36+
<testdoxText outputFile="./build/logs/testdox.txt"/>
37+
</logging>
3838
</phpunit>

0 commit comments

Comments
 (0)