-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial PHPUnit configuration file (CO-1716)
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <phpunit | ||
| colors="true" | ||
| processIsolation="false" | ||
| stopOnFailure="false" | ||
| syntaxCheck="false" | ||
| bootstrap="tests/bootstrap.php" | ||
| > | ||
| <php> | ||
| <ini name="memory_limit" value="-1"/> | ||
| <ini name="apc.enable_cli" value="1"/> | ||
| </php> | ||
|
|
||
| <testsuites> | ||
| <testsuite name="app"> | ||
| <directory>tests/TestCase/</directory> | ||
| <!-- Exclude example controller test --> | ||
| <exclude>tests/TestCase/Controller/PagesControllerTest.php</exclude> | ||
| </testsuite> | ||
| </testsuites> | ||
|
|
||
| <!-- Setup a listener for fixtures --> | ||
| <listeners> | ||
| <listener class="\Cake\TestSuite\Fixture\FixtureInjector"> | ||
| <arguments> | ||
| <object class="\Cake\TestSuite\Fixture\FixtureManager"/> | ||
| </arguments> | ||
| </listener> | ||
| </listeners> | ||
|
|
||
| <!-- Ignore vendor tests in code coverage reports --> | ||
| <filter> | ||
| <whitelist> | ||
| <directory suffix=".php">src/</directory> | ||
| <directory suffix=".php">plugins/*/src/</directory> | ||
| <exclude> | ||
| <file>src/Console/Installer.php</file> | ||
| </exclude> | ||
| </whitelist> | ||
| </filter> | ||
| </phpunit> |