-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpunit.xml.dist
More file actions
35 lines (35 loc) · 1.42 KB
/
phpunit.xml.dist
File metadata and controls
35 lines (35 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
colors="true"
backupGlobals="false"
backupStaticAttributes="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Chophper Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
<exclude>
<file>./src/Exceptions/InvalidHtmlException.php</file> <!-- No logic to test here -->
<!-- functions.php contains conditional function declarations based on extensions;
testing it directly is complex and relies on environment.
We test their usage via the Full class. -->
<file>./src/functions.php</file>
</exclude>
</whitelist>
</filter>
<php>
<ini name="error_reporting" value="-1"/>
<!-- Ensure consistent multibyte behavior for tests if not set globally -->
<ini name="mbstring.func_overload" value="0"/>
<ini name="intl.default_locale" value="en_US.UTF-8"/>
<ini name="intl.error_level" value="0"/>
</php>
</phpunit>