Skip to content

Instantly share code, notes, and snippets.

@devdrops
Created August 12, 2016 17:07
Show Gist options
  • Save devdrops/4c10407ade066fe946da4c2332585c0d to your computer and use it in GitHub Desktop.
Save devdrops/4c10407ade066fe946da4c2332585c0d to your computer and use it in GitHub Desktop.
Moar testsuites on PHPUnit file

Moar testsuites on PHPUnit file

<?xml version="1.0" encoding="UTF-8"?>

<!-- http://phpunit.de/manual/4.1/en/appendixes.configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="app/autoload.php"
>
    <php>
        <ini name="error_reporting" value="-1" />
    </php>

    <testsuites>
        <testsuite name="My_Old_Testsuite">
            <directory>path/to/my/old/testsuite</directory>
        </testsuite>
        <testsuite name="My_New_Testsuite">
            <directory>path/to/my/new/testsuite</directory>
        </testsuite>
    </testsuites>

    <php>
        <server name="KERNEL_DIR" value="app/" />
    </php>

    <filter>
        <whitelist>
            <directory>src</directory>
            <exclude>
                <directory>src/*Bundle/Resources</directory>
                <directory>src/*/*Bundle/Resources</directory>
                <directory>src/*/Bundle/*Bundle/Resources</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment