sintonia/legacy/tests/phpunit.xml
Jonas L 729a7b99e0
feat(legacy): consolidate constants (#1558)
* remove unused file

* fix paths leading slash

* remove useless imports

* refactor(legacy): use constants everywhere

* fix path leading slash

* remove useless import

* consolidate legacy contants

* format code

* reuse LIBRETIME_CONFIG_DIR

* fix test config path

* remove ci legacy log dir creation

* some logs improvements
2022-02-04 12:00:41 +02:00

31 lines
1.2 KiB
XML

<phpunit bootstrap="./application/bootstrap.php" colors="true">
<testsuite name="My Application Tests">
<directory>./</directory>
</testsuite>
<filter>
<whitelist>
<directory suffix=".php">../application/</directory>
<exclude>
<directory suffix=".phtml">../application/</directory>
<file>../application/Bootstrap.php</file>
<file>../application/controllers/ErrorController.php</file>
</exclude>
</whitelist>
</filter>
<php>
<env name="ENVIRONMENT" value="testing" />
<env name="APPLICATION_ENV" value="testing" />
<env name="LIBRETIME_UNIT_TEST" value="1" />
<env name="LIBRETIME_CONFIG_DIR" value="./config" />
<env name="LIBRETIME_LOG_DIR" value="./log" />
</php>
<!-- Disabling broken code coverage report. It's not using our autoloader for some reason...
<logging>
<log type="coverage-html" target="./log/report" charset="UTF-8" yui="true" hightlight="true" lowupperbound="50" highlowerbound="80">
<log type="testdox" target="./log/testdox.html">
</log></log></logging>
-->
</phpunit>