phpunit.xml.dist 2.73 KB
Newer Older
romanb's avatar
romanb committed
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0" encoding="utf-8"?>
<!--
    Use this configuration file as a template to run the tests against any dbms.
    Procedure:
        1) Save a copy of this file with a name of your chosing. It doesn't matter
           where you place it as long as you know where it is.
           i.e. "mysqlconf.xml" (It needs the ending .xml).
        2) Edit the file and fill in your settings (database name, type, username, etc.)
           Just change the "value"s, not the names of the var elements.
        3) To run the tests against the database type the following from within the
11 12
           tests/ folder: phpunit -c <filename> ...
           Example: phpunit -c mysqlconf.xml
romanb's avatar
romanb committed
13
-->
14
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Luís Cobucci's avatar
Luís Cobucci committed
15
         xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
16
         colors="true"
Luís Cobucci's avatar
Luís Cobucci committed
17 18 19
         beStrictAboutOutputDuringTests="true"
         beStrictAboutTodoAnnotatedTests="true"
         failOnRisky="true"
20
         failOnWarning="true"
21
>
22 23 24 25 26 27 28 29 30 31 32 33 34
    <php>
        <ini name="error_reporting" value="-1" />

        <!-- "Real" test database -->
        <!-- Uncomment, otherwise SQLite runs
        <var name="db_type" value="pdo_mysql"/>
        <var name="db_host" value="localhost" />
        <var name="db_username" value="root" />
        <var name="db_password" value="" />
        <var name="db_name" value="doctrine_tests" />
        <var name="db_port" value="3306"/>
        -->
        <!--<var name="db_event_subscribers" value="Doctrine\DBAL\Event\Listeners\OracleSessionInit">-->
Luís Cobucci's avatar
Luís Cobucci committed
35

36 37 38 39 40 41 42 43
        <!-- Database for temporary connections (i.e. to drop/create the main database) -->
        <var name="tmpdb_type" value="pdo_mysql"/>
        <var name="tmpdb_host" value="localhost" />
        <var name="tmpdb_username" value="root" />
        <var name="tmpdb_password" value="" />
        <var name="tmpdb_name" value="doctrine_tests_tmp" />
        <var name="tmpdb_port" value="3306"/>
    </php>
44 45 46 47

    <testsuites>
        <testsuite name="Doctrine DBAL Test Suite">
            <directory>./tests/Doctrine/Tests/DBAL</directory>
48 49 50 51
            <exclude>./tests/Doctrine/Tests/DBAL/Performance</exclude>
        </testsuite>
        <testsuite name="Doctrine DBAL Performance Test Suite">
            <directory>./tests/Doctrine/Tests/DBAL/Performance</directory>
52 53
        </testsuite>
    </testsuites>
Luís Cobucci's avatar
Luís Cobucci committed
54

55 56 57 58 59 60
    <filter>
        <whitelist>
            <directory suffix=".php">lib/Doctrine</directory>
        </whitelist>
    </filter>

61 62
    <listeners>
        <listener class="Doctrine\Tests\DbalPerformanceTestListener"/>
63
        <listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
64 65
    </listeners>

66 67 68 69 70
    <groups>
        <exclude>
            <group>performance</group>
        </exclude>
    </groups>
71
</phpunit>