Commit 36eeb256 authored by Tobias Schultze's avatar Tobias Schultze

use autoload-dev completely instead of an init script

parent fd037df1
...@@ -11,18 +11,15 @@ ...@@ -11,18 +11,15 @@
tests/ folder: phpunit -c <filename> ... tests/ folder: phpunit -c <filename> ...
Example: phpunit -c mysqlconf.xml Example: phpunit -c mysqlconf.xml
--> -->
<phpunit backupGlobals="false" <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupStaticAttributes="false" xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
backupGlobals="false"
colors="true" colors="true"
convertErrorsToExceptions="true" bootstrap="vendor/autoload.php"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="./tests/Doctrine/Tests/TestInit.php"
> >
<php> <php>
<ini name="error_reporting" value="-1" />
<!-- "Real" test database --> <!-- "Real" test database -->
<!-- Uncomment, otherwise SQLite runs <!-- Uncomment, otherwise SQLite runs
<var name="db_type" value="pdo_mysql"/> <var name="db_type" value="pdo_mysql"/>
......
<?php
/*
* This file bootstraps the test environment.
*/
error_reporting(E_ALL | E_STRICT);
date_default_timezone_set('UTC');
if (file_exists(__DIR__ . '/../../../vendor/autoload.php')) {
// dependencies were installed via composer - this is the main project
require __DIR__ . '/../../../vendor/autoload.php';
} elseif (file_exists(__DIR__ . '/../../../../../autoload.php')) {
// installed as a dependency in `vendor`
require __DIR__ . '/../../../../../autoload.php';
} else {
throw new Exception('Can\'t find autoload.php. Did you install dependencies via Composer?');
}
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<phpunit bootstrap="../Doctrine/Tests/TestInit.php"> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="../../vendor/autoload.php"
>
<php> <php>
<ini name="error_reporting" value="-1" />
<var name="db_type" value="pdo_mysql"/> <var name="db_type" value="pdo_mysql"/>
<var name="db_host" value="localhost" /> <var name="db_host" value="localhost" />
<var name="db_username" value="travis" /> <var name="db_username" value="travis" />
...@@ -20,12 +27,12 @@ ...@@ -20,12 +27,12 @@
<directory>../Doctrine/Tests/DBAL</directory> <directory>../Doctrine/Tests/DBAL</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<groups> <groups>
<exclude> <exclude>
<group>performance</group> <group>performance</group>
<group>locking_functional</group> <group>locking_functional</group>
</exclude> </exclude>
</groups> </groups>
</phpunit> </phpunit>
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<phpunit bootstrap="../Doctrine/Tests/TestInit.php"> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="../../vendor/autoload.php"
>
<php> <php>
<ini name="error_reporting" value="-1" />
<var name="db_type" value="pdo_mysql"/> <var name="db_type" value="pdo_mysql"/>
<var name="db_host" value="localhost" /> <var name="db_host" value="localhost" />
<var name="db_username" value="travis" /> <var name="db_username" value="travis" />
...@@ -20,12 +27,12 @@ ...@@ -20,12 +27,12 @@
<directory>../Doctrine/Tests/DBAL</directory> <directory>../Doctrine/Tests/DBAL</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<groups> <groups>
<exclude> <exclude>
<group>performance</group> <group>performance</group>
<group>locking_functional</group> <group>locking_functional</group>
</exclude> </exclude>
</groups> </groups>
</phpunit> </phpunit>
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<phpunit bootstrap="../Doctrine/Tests/TestInit.php"> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="../../vendor/autoload.php"
>
<php> <php>
<ini name="error_reporting" value="-1" />
<var name="db_type" value="mysqli"/> <var name="db_type" value="mysqli"/>
<var name="db_host" value="localhost" /> <var name="db_host" value="localhost" />
<var name="db_username" value="travis" /> <var name="db_username" value="travis" />
...@@ -20,12 +27,12 @@ ...@@ -20,12 +27,12 @@
<directory>../Doctrine/Tests/DBAL</directory> <directory>../Doctrine/Tests/DBAL</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<groups> <groups>
<exclude> <exclude>
<group>performance</group> <group>performance</group>
<group>locking_functional</group> <group>locking_functional</group>
</exclude> </exclude>
</groups> </groups>
</phpunit> </phpunit>
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<phpunit bootstrap="../Doctrine/Tests/TestInit.php"> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="../../vendor/autoload.php"
>
<php> <php>
<ini name="error_reporting" value="-1" />
<var name="db_type" value="pdo_pgsql"/> <var name="db_type" value="pdo_pgsql"/>
<var name="db_host" value="localhost" /> <var name="db_host" value="localhost" />
<var name="db_username" value="postgres" /> <var name="db_username" value="postgres" />
...@@ -14,11 +21,13 @@ ...@@ -14,11 +21,13 @@
<var name="tmpdb_password" value="" /> <var name="tmpdb_password" value="" />
<var name="tmpdb_port" value="5432"/> <var name="tmpdb_port" value="5432"/>
</php> </php>
<testsuites> <testsuites>
<testsuite name="Doctrine DBAL Test Suite"> <testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory> <directory>../Doctrine/Tests/DBAL</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<groups> <groups>
<exclude> <exclude>
<group>performance</group> <group>performance</group>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<phpunit bootstrap="../Doctrine/Tests/TestInit.php"> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="../../vendor/autoload.php"
>
<php>
<ini name="error_reporting" value="-1" />
</php>
<testsuites> <testsuites>
<testsuite name="Doctrine DBAL Test Suite"> <testsuite name="Doctrine DBAL Test Suite">
<directory>../Doctrine/Tests/DBAL</directory> <directory>../Doctrine/Tests/DBAL</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<groups> <groups>
<exclude> <exclude>
<group>performance</group> <group>performance</group>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment