|
0
|
1 |
<?xml version="1.0" encoding="utf-8"?>
|
|
|
2 |
<!--
|
|
|
3 |
Use this configuration file as a template to run the tests against any dbms.
|
|
|
4 |
Procedure:
|
|
|
5 |
1) Save a copy of this file with a name of your chosing. It doesn't matter
|
|
|
6 |
where you place it as long as you know where it is.
|
|
|
7 |
i.e. "mysqlconf.xml" (It needs the ending .xml).
|
|
|
8 |
2) Edit the file and fill in your settings (database name, type, username, etc.)
|
|
|
9 |
Just change the "value"s, not the names of the var elements.
|
|
|
10 |
3) To run the tests against the database type the following from within the
|
|
|
11 |
tests/ folder: phpunit -c <filename> ...
|
|
|
12 |
Example: phpunit -c mysqlconf.xml AllTests
|
|
|
13 |
-->
|
|
|
14 |
<phpunit backupGlobals="false"
|
|
|
15 |
backupStaticAttributes="false"
|
|
|
16 |
colors="true"
|
|
|
17 |
convertErrorsToExceptions="true"
|
|
|
18 |
convertNoticesToExceptions="true"
|
|
|
19 |
convertWarningsToExceptions="true"
|
|
|
20 |
processIsolation="false"
|
|
|
21 |
stopOnFailure="false"
|
|
|
22 |
syntaxCheck="false"
|
|
|
23 |
bootstrap="./tests/Doctrine/Tests/TestInit.php"
|
|
|
24 |
>
|
|
|
25 |
|
|
|
26 |
<testsuites>
|
|
|
27 |
<testsuite name="Doctrine ORM Test Suite">
|
|
|
28 |
<directory>./tests/Doctrine/Tests/ORM</directory>
|
|
|
29 |
</testsuite>
|
|
|
30 |
</testsuites>
|
|
|
31 |
|
|
|
32 |
<groups>
|
|
|
33 |
<exclude>
|
|
|
34 |
<group>performance</group>
|
|
|
35 |
<group>locking_functional</group>
|
|
|
36 |
</exclude>
|
|
|
37 |
</groups>
|
|
|
38 |
|
|
|
39 |
<php>
|
|
|
40 |
<!-- "Real" test database -->
|
|
|
41 |
<!-- uncomment, otherwise sqlite memory runs
|
|
|
42 |
<var name="db_type" value="pdo_mysql"/>
|
|
|
43 |
<var name="db_host" value="localhost" />
|
|
|
44 |
<var name="db_username" value="root" />
|
|
|
45 |
<var name="db_password" value="" />
|
|
|
46 |
<var name="db_name" value="doctrine_tests" />
|
|
|
47 |
<var name="db_port" value="3306"/>-->
|
|
|
48 |
<!--<var name="db_event_subscribers" value="Doctrine\DBAL\Event\Listeners\OracleSessionInit">-->
|
|
|
49 |
|
|
|
50 |
<!-- Database for temporary connections (i.e. to drop/create the main database) -->
|
|
|
51 |
<var name="tmpdb_type" value="pdo_mysql"/>
|
|
|
52 |
<var name="tmpdb_host" value="localhost" />
|
|
|
53 |
<var name="tmpdb_username" value="root" />
|
|
|
54 |
<var name="tmpdb_password" value="" />
|
|
|
55 |
<var name="tmpdb_name" value="doctrine_tests_tmp" />
|
|
|
56 |
<var name="tmpdb_port" value="3306"/>
|
|
|
57 |
</php>
|
|
|
58 |
|
|
|
59 |
</phpunit> |