Skip to content

Commit

Permalink
Update PHPUnit config
Browse files Browse the repository at this point in the history
  • Loading branch information
Garethp committed Aug 24, 2024
1 parent cfd9de6 commit 1bf9703
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 62 deletions.
52 changes: 25 additions & 27 deletions phpunit.live.xml
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.7/phpunit.xsd"
bootstrap="tests/bootstrap.php">
<php>
<env name="HttpPlayback" value="live" />
</php>
<testsuites>
<testsuite name="PHP EWS Test Suite">
<directory>tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
<exclude>
<directory>Type</directory>
<directory>Enumeration</directory>
</exclude>
</whitelist>
<blacklist>
<directory>tests</directory>
<directory>vendor</directory>
<directory>src/Type</directory>
<directory>src/Enumeration</directory>
</blacklist>
</filter>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.3/phpunit.xsd"
bootstrap="tests/bootstrap.php"
cacheDirectory=".phpunit.cache">
<php>
<env name="HttpPlayback" value="live"/>
</php>
<testsuites>
<testsuite name="PHP EWS Test Suite">
<directory>tests/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
<exclude>
<directory>src/API/Type/</directory>
<directory>src/API/Message/</directory>
<directory>src/API/Enumeration/</directory>
<directory>src/Generator/</directory>
<directory>src/API/Exception/</directory>
</exclude>
</source>
</phpunit>
52 changes: 25 additions & 27 deletions phpunit.record.xml
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.7/phpunit.xsd"
bootstrap="tests/bootstrap.php">
<php>
<env name="HttpPlayback" value="record" />
</php>
<testsuites>
<testsuite name="PHP EWS Test Suite">
<directory>tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
<exclude>
<directory>Type</directory>
<directory>Enumeration</directory>
</exclude>
</whitelist>
<blacklist>
<directory>tests</directory>
<directory>vendor</directory>
<directory>src/Type</directory>
<directory>src/Enumeration</directory>
</blacklist>
</filter>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.3/phpunit.xsd"
bootstrap="tests/bootstrap.php"
cacheDirectory=".phpunit.cache">
<php>
<env name="HttpPlayback" value="record"/>
</php>
<testsuites>
<testsuite name="PHP EWS Test Suite">
<directory>tests/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
<exclude>
<directory>src/API/Type/</directory>
<directory>src/API/Message/</directory>
<directory>src/API/Enumeration/</directory>
<directory>src/Generator/</directory>
<directory>src/API/Exception/</directory>
</exclude>
</source>
</phpunit>
24 changes: 16 additions & 8 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.7/phpunit.xsd"
bootstrap="tests/bootstrap.php">
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.3/phpunit.xsd"
bootstrap="tests/bootstrap.php"
cacheDirectory=".phpunit.cache">
<php>
<env name="HttpPlayback" value="playback" />
<env name="HttpPlayback" value="playback"/>
</php>
<testsuites>
<testsuite name="PHP EWS Test Suite">
<directory>tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<source>
<include>
<directory>src/</directory>
</whitelist>
</filter>
</include>
<exclude>
<directory>src/API/Type/</directory>
<directory>src/API/Message/</directory>
<directory>src/API/Enumeration/</directory>
<directory>src/Generator/</directory>
<directory>src/API/Exception/</directory>
</exclude>
</source>
</phpunit>

0 comments on commit 1bf9703

Please sign in to comment.