phpunit.xml.dist 2.21 KB
Newer Older
romanb's avatar
romanb committed
1 2 3 4
<?xml version="1.0" encoding="utf-8"?>
<!--
    Use this configuration file as a template to run the tests against any dbms.
    Procedure:
Benjamin Morel's avatar
Benjamin Morel committed
5
        1) Save a copy of this file with a name of your choosing. It doesn't matter
romanb's avatar
romanb committed
6 7 8 9 10
           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
    <php>
        <ini name="error_reporting" value="-1" />

25
        <!-- Test connection parameters -->
26
        <!-- Uncomment, otherwise SQLite runs
27
        <var name="db_driver" value="pdo_mysql"/>
28 29
        <var name="db_host" value="localhost" />
        <var name="db_port" value="3306"/>
30 31 32
        <var name="db_user" value="root" />
        <var name="db_password" value="" />
        <var name="db_dbname" value="doctrine_tests" />
33 34
        -->
        <!--<var name="db_event_subscribers" value="Doctrine\DBAL\Event\Listeners\OracleSessionInit">-->
Luís Cobucci's avatar
Luís Cobucci committed
35

36 37
        <!-- Privileged user connection parameters. Used to create and drop the test database -->
        <var name="tmpdb_driver" value="pdo_mysql"/>
38 39
        <var name="tmpdb_host" value="localhost" />
        <var name="tmpdb_port" value="3306"/>
40 41 42
        <var name="tmpdb_user" value="root" />
        <var name="tmpdb_password" value="" />
        <var name="tmpdb_dbname" value="doctrine_tests_tmp" />
43
    </php>
44 45 46

    <testsuites>
        <testsuite name="Doctrine DBAL Test Suite">
47
            <directory>tests</directory>
48 49
        </testsuite>
    </testsuites>
Luís Cobucci's avatar
Luís Cobucci committed
50

51 52
    <filter>
        <whitelist>
53
            <directory suffix=".php">src</directory>
54 55
        </whitelist>
    </filter>
56
</phpunit>