-
Notifications
You must be signed in to change notification settings - Fork 15
/
phpunit.xml.dist
96 lines (77 loc) · 3.24 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
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="./test/bootstrap.php"
executionOrder="default"
>
<php>
<!--
AUTORUN_PJB_STANDALONE : boolean
* Only work on Linux system with a JVM installed *
If you want to automatically download, install and run
the original PHPJavaBridge standalone server. This
feature allows CI systems to run tests with minimal
configuration.An correct example of servlet_address
could be http://127.0.0.1:8083/servlet.phpjavabridge,
Feel free to change the port.
(if false, you have to get a tomcat server running)
-->
<server name="AUTORUN_PJB_STANDALONE" value="true" />
<server name="PJB_SERVLET_ADDRESS" value="http://127.0.0.1:8083/servlet.phpjavabridge" />
<!--
to run the test suite on tomcat please increase
the heap memory in /etc/default/tomcat7:
JAVA_OPTS="-Djava.awt.headless=true -Xmx512m -XX:+UseConcMarkSweepGC"
-->
<!--
<server name="AUTORUN_PJB_STANDALONE" value="false" />
<server name="PJB_SERVLET_ADDRESS" value="http://127.0.0.1:8080/javabridge-bundle/servlet.phpjavabridge" />
-->
<!--
Configure connection to mysql server for testing
mysql jdbc connection
-->
<server name="JAPHA_ENABLE_JDBC_TESTS" value="false" />
<server name="MYSQL_DRIVER" value="Mysqli" />
<server name="MYSQL_HOSTNAME" value="127.0.0.1" />
<server name="MYSQL_USERNAME" value="root" />
<server name="MYSQL_PASSWORD" value="" />
<server name="MYSQL_DATABASE" value="phpunit_soluble_test_db" />
<!-- third party tests, ensure your bridge server has the deps installed -->
<server name="JAPHA_ENABLE_CORENLP_TESTS" value="false" />
<server name="JAPHA_ENABLE_JSONIO_TESTS" value="false" />
<server name="JAPHA_ENABLE_GSON_TESTS" value="false" />
<server name="PHPUNIT_CACHE_DIR" value="./test/tmp/cache" />
<ini name="date.timezone" value="Europe/Brussels"/>
<!-- Default charset: Still errors if different from UTF-8 -->
<ini name="default_charset" value="UTF-8"/>
<!--
<ini name="default_charset" value="latin1"/>
-->
</php>
<testsuites>
<testsuite name="soluble/japha">
<directory>./test/src/SolubleTest/Japha</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>./src</directory>
<!--
<exclude>
<file>./src/Soluble/Japha/Bridge/Driver/Pjb62/SimpleParser.php</file>
</exclude>
-->
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="./test/build/logs/clover.xml"/>
<log type="coverage-html" target="./test/build/html-coverage" />
</logging>
</phpunit>