forked from cakephp/cakephp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpunit.xml.dist
62 lines (57 loc) · 2.05 KB
/
phpunit.xml.dist
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
colors="true"
bootstrap="tests/bootstrap.php"
backupGlobals="true"
convertDeprecationsToExceptions="true"
>
<testsuites>
<testsuite name="cakephp">
<directory>tests/TestCase/</directory>
<!-- Excludes are required in order to let DatabaseSuite decorate the tests -->
<exclude>tests/TestCase/Database/</exclude>
<exclude>tests/TestCase/ORM/</exclude>
</testsuite>
<testsuite name="database">
<directory>tests/TestCase/Database/</directory>
<directory>tests/TestCase/ORM/</directory>
</testsuite>
</testsuites>
<extensions>
<extension class="Cake\TestSuite\Fixture\PHPUnitExtension"/>
</extensions>
<!-- Prevent coverage reports from looking in tests, vendors, config folders -->
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
<exclude>
<!--
This file contains a few functions that cannot be tested
as they contain die; or breakpoint functionality.
-->
<file>src/basics.php</file>
<!-- This file is deprecated and unused -->
<file>src/Core/ClassLoader.php</file>
</exclude>
</whitelist>
</filter>
<php>
<ini name="memory_limit" value="-1"/>
<!-- E_ALL & ~E_USER_DEPRECATED (16383)-->
<!-- E_ALL (32767) -->
<ini name="error_reporting" value="32767"/>
<env name="FIXTURE_SCHEMA_METADATA" value="./tests/schema.php"/>
<!-- SQLite
<env name="DB_URL" value="sqlite:///:memory:"/>
-->
<!-- Postgres
<env name="DB_URL" value="postgres://localhost/cake_test?timezone=UTC"/>
-->
<!-- MySQL
<env name="DB_URL" value="mysql://localhost/cake_test?timezone=UTC"/>
-->
<!-- SQL Server
<env name="DB_URL" value="sqlserver://localhost/cake_test?timezone=UTC"/>
-->
</php>
</phpunit>