Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix validation errors in phpunit xml config #10

Open
wants to merge 1 commit into
base: 2.next-cake4
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 21 additions & 44 deletions phpunit.xml.dbtest
Original file line number Diff line number Diff line change
@@ -1,46 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
stderr="true"
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>

<!-- Add any additional test suites you want to run here -->
<testsuites>
<testsuite name="App Test Suite">
<directory>./tests/TestCase</directory>
</testsuite>
<!-- Add plugin test suites here. -->
</testsuites>

<!-- Setup a listener for fixtures -->
<listeners>
<listener
class="\CakeDC\DbTest\TestSuite\Fixture\FixtureInjector"
file="./vendor/cakedc/cakephp-db-test/src/TestSuite/Fixture/FixtureInjector.php">
<arguments>
<object class="\CakeDC\DbTest\TestSuite\Fixture\FixtureManager" />
<boolean></boolean>
</arguments>
</listener>
</listeners>

<!-- Adds the folders to process in code coverage reports -->
<filter>
<whitelist>
<directory suffix=".php">./src/</directory>
<directory suffix=".php">./plugins/*/src/</directory>
<exclude>
<file>./src/Console/Installer.php</file>
<file>./src/Shell/ConsoleShell.php</file>
</exclude>
</whitelist>
</filter>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" stderr="true" colors="true" processIsolation="false" stopOnFailure="false" bootstrap="tests/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<php>
<ini name="memory_limit" value="-1"/>
<ini name="apc.enable_cli" value="1"/>
</php>
<!-- Add any additional test suites you want to run here -->
<testsuites>
<testsuite name="app">
<directory>tests/TestCase/</directory>
</testsuite>
<!-- Add plugin test suites here. -->
</testsuites>
<!-- Setup a listener for fixtures -->
<listeners>
<listener class="\CakeDC\DbTest\TestSuite\Fixture\FixtureInjector" file="./vendor/cakedc/cakephp-db-test/src/TestSuite/Fixture/FixtureInjector.php">
<arguments>
<object class="\CakeDC\DbTest\TestSuite\Fixture\FixtureManager"/>
</arguments>
</listener>
</listeners>
<!-- Ignore vendor tests in code coverage reports -->
</phpunit>