Skip to content

Commit

Permalink
Update php-unit configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane MEAUDRE committed Oct 2, 2023
1 parent a41953f commit 5106a02
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 24 deletions.
38 changes: 14 additions & 24 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
backupGlobals="false"
backupStaticProperties="false"
bootstrap="tests/bootstrap.php"
cacheDirectory=".phpunit.cache"
cacheResultFile=".phpunit.cache/test-results"
colors="true"
processIsolation="false"
stopOnFailure="false"
>
<coverage cacheDirectory=".phpunit.cache/code-coverage">
<include>
<directory suffix=".php">./src</directory>
</include>
<exclude>
<directory>./docker</directory>
<directory suffix=".php">./vendor</directory>
<directory suffix=".php">./src/Exceptions</directory>
<file>./src/test.php</file>
</exclude>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd" backupGlobals="false" backupStaticProperties="false" bootstrap="tests/bootstrap.php" cacheDirectory=".phpunit.cache" cacheResultFile=".phpunit.cache/test-results" colors="true" processIsolation="false" stopOnFailure="false">
<coverage cacheDirectory=".phpunit.cache/code-coverage"/>
<testsuites>
<testsuite name="Astrobin WS Test Suite">
<directory suffix=".php">./tests/Services</directory>
Expand All @@ -33,4 +12,15 @@
<directory suffix=".php">./tests/Response</directory>
</testsuite>
</testsuites>
</phpunit>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
<exclude>
<directory>./docker</directory>
<directory suffix=".php">./vendor</directory>
<directory suffix=".php">./src/Exceptions</directory>
<file>./src/test.php</file>
</exclude>
</source>
</phpunit>
36 changes: 36 additions & 0 deletions phpunit.xml.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
backupGlobals="false"
backupStaticProperties="false"
bootstrap="tests/bootstrap.php"
cacheDirectory=".phpunit.cache"
cacheResultFile=".phpunit.cache/test-results"
colors="true"
processIsolation="false"
stopOnFailure="false"
>
<coverage cacheDirectory=".phpunit.cache/code-coverage">
<include>
<directory suffix=".php">./src</directory>
</include>
<exclude>
<directory>./docker</directory>
<directory suffix=".php">./vendor</directory>
<directory suffix=".php">./src/Exceptions</directory>
<file>./src/test.php</file>
</exclude>
</coverage>
<testsuites>
<testsuite name="Astrobin WS Test Suite">
<directory suffix=".php">./tests/Services</directory>
</testsuite>
<testsuite name="Enums Test Suite">
<directory suffix=".php">./tests/Filters</directory>
</testsuite>
<testsuite name="DTO Test Suite">
<directory suffix=".php">./tests/Response</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit 5106a02

Please sign in to comment.