Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
36eeb256
Commit
36eeb256
authored
Oct 17, 2015
by
Tobias Schultze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use autoload-dev completely instead of an init script
parent
fd037df1
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
73 additions
and
53 deletions
+73
-53
phpunit.xml.dist
phpunit.xml.dist
+25
-28
TestInit.php
tests/Doctrine/Tests/TestInit.php
+0
-17
mariadb.travis.xml
tests/travis/mariadb.travis.xml
+9
-2
mysql.travis.xml
tests/travis/mysql.travis.xml
+9
-2
mysqli.travis.xml
tests/travis/mysqli.travis.xml
+9
-2
pgsql.travis.xml
tests/travis/pgsql.travis.xml
+10
-1
sqlite.travis.xml
tests/travis/sqlite.travis.xml
+11
-1
No files found.
phpunit.xml.dist
View file @
36eeb256
...
...
@@ -11,18 +11,15 @@
tests/ folder: phpunit -c <filename> ...
Example: phpunit -c mysqlconf.xml
-->
<phpunit
backupGlobals=
"false"
backupStaticAttributes=
"false"
<phpunit
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"http://schema.phpunit.de/4.8/phpunit.xsd"
backupGlobals=
"false"
colors=
"true"
convertErrorsToExceptions=
"true"
convertNoticesToExceptions=
"true"
convertWarningsToExceptions=
"true"
processIsolation=
"false"
stopOnFailure=
"false"
syntaxCheck=
"false"
bootstrap=
"./tests/Doctrine/Tests/TestInit.php"
bootstrap=
"vendor/autoload.php"
>
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<!-- "Real" test database -->
<!-- Uncomment, otherwise SQLite runs
<var name="db_type" value="pdo_mysql"/>
...
...
tests/Doctrine/Tests/TestInit.php
deleted
100644 → 0
View file @
fd037df1
<?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?'
);
}
tests/travis/mariadb.travis.xml
View file @
36eeb256
<?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"
/>
<var
name=
"db_type"
value=
"pdo_mysql"
/>
<var
name=
"db_host"
value=
"localhost"
/>
<var
name=
"db_username"
value=
"travis"
/>
...
...
@@ -20,12 +27,12 @@
<directory>
../Doctrine/Tests/DBAL
</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>
performance
</group>
<group>
locking_functional
</group>
</exclude>
</groups>
</phpunit>
tests/travis/mysql.travis.xml
View file @
36eeb256
<?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"
/>
<var
name=
"db_type"
value=
"pdo_mysql"
/>
<var
name=
"db_host"
value=
"localhost"
/>
<var
name=
"db_username"
value=
"travis"
/>
...
...
@@ -20,12 +27,12 @@
<directory>
../Doctrine/Tests/DBAL
</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>
performance
</group>
<group>
locking_functional
</group>
</exclude>
</groups>
</phpunit>
tests/travis/mysqli.travis.xml
View file @
36eeb256
<?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"
/>
<var
name=
"db_type"
value=
"mysqli"
/>
<var
name=
"db_host"
value=
"localhost"
/>
<var
name=
"db_username"
value=
"travis"
/>
...
...
@@ -20,12 +27,12 @@
<directory>
../Doctrine/Tests/DBAL
</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>
performance
</group>
<group>
locking_functional
</group>
</exclude>
</groups>
</phpunit>
tests/travis/pgsql.travis.xml
View file @
36eeb256
<?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"
/>
<var
name=
"db_type"
value=
"pdo_pgsql"
/>
<var
name=
"db_host"
value=
"localhost"
/>
<var
name=
"db_username"
value=
"postgres"
/>
...
...
@@ -14,11 +21,13 @@
<var
name=
"tmpdb_password"
value=
""
/>
<var
name=
"tmpdb_port"
value=
"5432"
/>
</php>
<testsuites>
<testsuite
name=
"Doctrine DBAL Test Suite"
>
<directory>
../Doctrine/Tests/DBAL
</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>
performance
</group>
...
...
tests/travis/sqlite.travis.xml
View file @
36eeb256
<?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>
<testsuite
name=
"Doctrine DBAL Test Suite"
>
<directory>
../Doctrine/Tests/DBAL
</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>
performance
</group>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment