Repository navigation
Expand file tree
/
Copy pathphpunit.xml.dist
More file actions
48 lines (44 loc) · 1.86 KB
/
Copy pathphpunit.xml.dist
File metadata and controls
48 lines (44 loc) · 1.86 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="tests/bootstrap.php"
failOnDeprecation="true"
displayDetailsOnTestsThatTriggerDeprecations="true"
>
<php>
<ini name="memory_limit" value="-1" />
<ini name="display_errors" value="1" />
<ini name="error_reporting" value="-1" />
<server name="KERNEL_CLASS" value="Eccube\Kernel" />
<server name="APP_ENV" value="test" force="true" />
<server name="SHELL_VERBOSITY" value="-1" />
</php>
<testsuites>
<testsuite name="Project Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<!--
failOnDeprecation と組み合わせ、Symfony の SYMFONY_DEPRECATIONS_HELPER=max[direct]=0 と
同じ範囲だけを CI ゲートにする。
- direct (自コードが PHP/vendor の非推奨 API を呼ぶ) … ゲート対象。修正すべきもの
- self (自コードが自ら trigger_error する @deprecated 予告) … 対象外
- indirect (vendor 内部で発生し我々が修正できないもの) … 対象外
-->
<source ignoreSelfDeprecations="true"
ignoreIndirectDeprecations="true">
<include>
<directory suffix=".php">src</directory>
</include>
<exclude>
<directory suffix=".php">./src/Eccube/Resource</directory>
<directory suffix=".php">./src/Eccube/Command</directory>
</exclude>
</source>
<extensions>
<bootstrap class="DAMA\DoctrineTestBundle\PHPUnit\PHPUnitExtension"/>
</extensions>
</phpunit>