What I wanted to do was to have credentials in phpunit.xml and test suites in phpunit.xml.dist. The problem with this setting is that at any time when a test is added, each developer should add it to their own phpunit.xml. To get around this, my idea was for test suites to come from the .dist version. Despite many different versions, I'm not sure what I am missing. This is what i am trying to do
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.5/phpunit.xsd"
xmlns:xi="http://www.w3.org/2001/XInclude"
bootstrap="cfg/phpunit_autoload.php">
<php>
<var name="DB_DSN" value="mysql:dbname=mysql;host=localhost;port=3306"/>
<var name="DB_USER" value="root"/>
<var name="DB_PASS" value="your_local_pass"/>
<var name="DB_DEFAULTDB" value="mysql"/>
</php>
<xi:include href="tests/phpunit.xml.dist" parse="xml" xpointer="test-suites">
<xi:fallback>
<testsuites id="test-suites">
<testsuite name="MTD">
<directory>tests/app/MTD</directory>
</testsuite>
</testsuites>
</xi:fallback>
</xi:include>
, - , .dist /tests root .xml . , .dist .xml , .xml .dist /tests. - , , . , , . .xml , testsuites .dist /tests.
, , , . -, xml .xml .dist, id = "test-suites", " ":/{ my_path}/tests/tests/phpunit.xml.dist".
, .