Created
July 18, 2018 04:07
-
-
Save sohelrana820/9e7fab2abd814419c8647dcf19a623b1 to your computer and use it in GitHub Desktop.
PHPUNIT.XML configuration for CakePHP 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit | |
colors="true" | |
processIsolation="false" | |
stopOnFailure="false" | |
syntaxCheck="false" | |
bootstrap="./tests/bootstrap.php" | |
backupGlobals="true" | |
> | |
<php> | |
<ini name="memory_limit" value="-1"/> | |
<ini name="apc.enable_cli" value="1"/> | |
<!-- E_ALL & ~E_USER_DEPRECATED (16383)--> | |
<!-- E_ALL (32767) --> | |
<ini name="error_reporting" value="32767"/> | |
</php> | |
<testsuites> | |
<testsuite name="cakephp"> | |
<directory>./tests/TestCase/</directory> | |
<!-- Excludes are required in order to let DatabaseSuite decorate the tests --> | |
<exclude>./tests/TestCase/Database/</exclude> | |
<exclude>./tests/TestCase/ORM/</exclude> | |
</testsuite> | |
<testsuite name="database"> | |
<file>./tests/TestCase/DatabaseSuite.php</file> | |
</testsuite> | |
</testsuites> | |
<listeners> | |
<listener class="\Cake\TestSuite\Fixture\FixtureInjector" file="./src/TestSuite/Fixture/FixtureInjector.php"> | |
<arguments> | |
<object class="\Cake\TestSuite\Fixture\FixtureManager" /> | |
</arguments> | |
</listener> | |
</listeners> | |
<!-- Prevent coverage reports from looking in tests, vendors, config folders --> | |
<filter> | |
<whitelist> | |
<directory suffix=".php">./src/</directory> | |
</whitelist> | |
</filter> | |
<php> | |
<!-- SQLite | |
<env name="db_dsn" value="sqlite:///:memory:"/> | |
--> | |
<!-- Postgres | |
<env name="db_dsn" value="postgres://localhost/cake_test?timezone=UTC"/> | |
--> | |
<!-- Mysql | |
<env name="db_dsn" value="mysql://localhost/cake_test?timezone=UTC"/> | |
--> | |
<!-- SQL Server | |
<env name="db_dsn" value="sqlserver://localhost/cake_test?timezone=UTC"/> | |
--> | |
</php> | |
</phpunit> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment