-
Notifications
You must be signed in to change notification settings - Fork 9
/
phpunit.xml.dist
101 lines (82 loc) · 3.95 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?xml version="1.0" encoding="utf-8"?>
<!--
This is a example file to run the tests against a Informix database.
To run the tests copy the file as phpunit.xml (the default configuration
file name used by phpunit), fill the connection values, ensure that both
databases, the "real" test database and the temporary database, exist
before launching the tests and run phpunit.
Considerations:
- To run the tests the DBAL tests need to be with the Doctrine\DBAL vendor
libs (it should be installed with composer).
- Some tests of Doctrine\DBAL from the vendor directory are excluded because
they don't work as such and need some little modifications, they are supplied
with the Informix Platform code in order to run it.
- You must set your Informix environment to use delimited identifiers, in
*nix systems it is enough set the DELIMIDENT variable (see below).
-->
<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="./tests/Doctrine/Tests/TestInit.php"
>
<php>
<!-- DELIMIDENT is needed to use quoted identifiers -->
<env name="DELIMIDENT" value="y"/>
<!-- "Real" test database -->
<var name="db_type" value="pdo_informix"/>
<var name="db_host" value="" />
<var name="db_username" value="" />
<var name="db_password" value="" />
<var name="db_name" value="ifx4dd" />
<var name="db_port" value=""/>
<var name="db_protocol" value="onsoctcp"/>
<var name="db_server" value=""/>
<!-- Database for temporary connections -->
<var name="tmpdb_type" value="pdo_informix"/>
<var name="tmpdb_host" value="" />
<var name="tmpdb_username" value="" />
<var name="tmpdb_password" value="" />
<var name="tmpdb_name" value="ifx4dd_tmp" />
<var name="tmpdb_port" value=""/>
<var name="tmpdb_protocol" value="onsoctcp"/>
<var name="tmpdb_server" value=""/>
</php>
<testsuites>
<testsuite name="Informix Platform for Doctrine DBAL Test Suite">
<directory>./tests/Doctrine/Tests/DBAL</directory>
</testsuite>
<testsuite name="Doctrine DBAL Test Suite">
<directory>./vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL</directory>
<!-- next covered by ./tests/Doctrine/Tests/DBAL/Functional/BlobTest.php -->
<exclude>./vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Functional/BlobTest.php</exclude>
<!-- next covered by ./tests/Doctrine/Tests/DBAL/Functional/DataAccessTest.php -->
<exclude>./vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Functional/DataAccessTest.php</exclude>
<!-- next covered by ./tests/Doctrine/Tests/DBAL/Functional/Driver/PDOConnectionTest.php -->
<exclude>./vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Functional/Driver/PDOConnectionTest.php</exclude>
<!-- next covered by ./tests/Doctrine/Tests/DBAL/Functional/ConnectionTest.php -->
<exclude>./vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Functional/ConnectionTest.php</exclude>
<!-- doesn't work on Informix (it's not possible to use a binary field as primary key) -->
<exclude>./vendor/doctrine/dbal/tests/Doctrine/Tests/DBAL/Functional/Types/BinaryTest.php</exclude>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./lib</directory>
<exclude>
<file>./lib/Doctrine/DBAL/DriverManager.php</file>
<file>./lib/Doctrine/DBAL/Portability/Connection.php</file>
</exclude>
</whitelist>
</filter>
<!--
<logging>
<log type="coverage-html" target="build/coverage"/>
</logging>
-->
</phpunit>