-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphpunit.xml
148 lines (137 loc) · 4.93 KB
/
phpunit.xml
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?xml version="1.0" encoding="UTF-8"?>
<!--
! phpunit.xml
!
! This XML configuration file is meant to run on a continous integration system,
! (generates code coverage reports, runs all tests as a separate app (slower), etc)
!
! XML configuration file for the unit testing framework "PHPUnit".
!
! See http://phpunit.de/manual/3.6/en/appendixes.configuration.html for an
! explanation of the XML configuration file.
!
! Link: http://gist.github.com/3034294
!-->
<!--
! The attributes of the <phpunit> element can be used to configure PHPUnit's
! core functionality.
!-->
<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
bootstrap="tests/src/bootstrap.php"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="true"
syntaxCheck="false"
>
<!--
! Enable xdebug code coverage
! http://www.kraken.no/blog/2013/04/22/phpunit-speedups/
!-->
<php>
<ini name="xdebug.default_enable" value="1" />
<ini name="xdebug.enable_coverage" value="1" />
<ini name="xdebug.remote_autostart" value="0" />
<ini name="xdebug.remote_enable" value="0" />
<ini name="xdebug.overload_var_dump" value="0" />
<ini name="xdebug.show_mem_delta" value="0" />
</php>
<!--
! The <php> element and its children can be used to configure PHP settings,
! constants, and global variables. It can also be used to prepend the
! include_path.
! -->
<php>
<ini name="memory_limit" value="512M" />
<ini name="display_startup_errors" value="1" />
<ini name="ignore_repeated_errors" value="0" />
<ini name="ignore_repeated_source" value="0" />
<ini name="report_memleaks" value="1" />
<ini name="html_errors" value="0" />
<ini name="xmlrpc_errors" value="0" />
<ini name="xmlrpc_error_number" value="0" />
<ini name="docref_root" value=".php" />
<ini name="error_prepend_string" value="" />
<ini name="error_append_string" value="" />
</php>
<!--
! The <testsuites> element and its one or more <testsuite> children can be
! used to compose a test suite out of test suites and test cases.
!-->
<testsuites>
<testsuite name="Eloquent Model">
<directory>./tests/src/Drivers</directory>
<directory>./tests/src/Models</directory>
<directory>./tests/src/Services</directory>
</testsuite>
</testsuites>
<!--
! The <filter> element and its children can be used to configure the
! blacklist and whitelist for the code coverage reporting.
!-->
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src/Drivers</directory>
<directory suffix=".php">src/Models</directory>
<directory suffix=".php">src/Services</directory>
<exclude>
</exclude>
</whitelist>
</filter>
<!--
! The <logging> element and its <log> children can be used to configure the
! logging of the test execution.
!-->
<!-- Example
<logging>
<log type="coverage-clover" target="review/phpcov/coverage.xml" />
<log type="coverage-html"
target="review/phpcov/coverage"
showUncoveredFiles="true"
charset="UTF-8"
yui="true"
highlight="true"
lowUpperBound="35"
highLowerBound="70" />
<log type="coverage-php"
target="review/phpcov/coverage.serialized"
showUncoveredFiles="true" />
<log type="coverage-text"
target="review/phpcov/coverage.txt"
showUncoveredFiles="true" />
<log type="json" target="review/phpunit/phpunit.json" />
<log type="junit"
target="review/phpunit/junit.xml"
logIncompleteSkipped="true" />
<log type="tap" target="review/phpunit/phpunit.tap" />
<log type="testdox-html" target="review/phpunit/testdox.html" />
<log type="testdox-text" target="review/phpunit/testdox.txt" />
</logging>
!-->
<!--
! The <selenium> element and its <browser> children can be used configure a
! list of Selenium RC servers.
!-->
<!-- Example
<selenium>
<browser name="Mozilla Firefox"
browser="*firefox"
host="127.0.0.1"
port="4444"
timeout="30" />
<browser name="Google Chrome"
browser="*chrome"
host="127.0.0.1"
port="4444"
timeout="30" />
<browser name="Internet Explorer"
browser="*iexplore"
host="127.0.0.1"
port="4444"
timeout="30" />
</selenium>
!-->
</phpunit>