Skip to content

Commit a1d67ee

Browse files
committed
Tune up PHPUnit
1 parent 4b5e3f6 commit a1d67ee

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

phpunit.xml.dist

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<phpunit backupGlobals="false"
3+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
5+
backupGlobals="false"
46
backupStaticAttributes="false"
57
bootstrap="./tests/bootstrap.php"
68
colors="true"
79
convertErrorsToExceptions="true"
810
convertNoticesToExceptions="true"
911
convertWarningsToExceptions="true"
1012
processIsolation="false"
13+
stopOnError="false"
1114
stopOnFailure="false"
12-
syntaxCheck="true"
1315
verbose="true"
1416
>
1517
<testsuites>
@@ -19,7 +21,10 @@
1921
</testsuites>
2022
<logging>
2123
<log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>
22-
<log type="coverage-html" target="coverage" showUncoveredFiles="true"/>
23-
<log type="coverage-clover" target="coverage.xml" showUncoveredFiles="true"/>
2424
</logging>
25+
<php>
26+
<ini name="date.timezone" value="UTC"/>
27+
<ini name="display_errors" value="on"/>
28+
<ini name="display_startup_errors" value="on"/>
29+
</php>
2530
</phpunit>

tests/bootstrap.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@
2020
// turn on all errors
2121
error_reporting(-1);
2222

23-
ini_set('date.timezone', 'UTC');
24-
ini_set('display_errors', 'on');
25-
ini_set('display_startup_errors', 'on');
26-
2723
$vendorPath = dirname(dirname(__FILE__)) . '/vendor';
2824

2925
if (!is_file($vendorPath . '/autoload.php')) {

0 commit comments

Comments
 (0)