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
c83a43c3
Commit
c83a43c3
authored
Oct 24, 2015
by
Steve Müller
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #917 from Tobion/remove-submodule-entries
Remove submodule entries & improve test setup
parents
ddbb789f
0d76c6e9
Changes
45
Hide whitespace changes
Inline
Side-by-side
Showing
45 changed files
with
121 additions
and
118 deletions
+121
-118
.gitattributes
.gitattributes
+0
-1
.gitmodules
.gitmodules
+0
-9
.travis.yml
.travis.yml
+9
-6
phpunit.xml.dist
phpunit.xml.dist
+25
-28
ConfigurationTest.php
tests/Doctrine/Tests/DBAL/ConfigurationTest.php
+1
-1
ConnectionTest.php
tests/Doctrine/Tests/DBAL/ConnectionTest.php
+1
-1
OCI8StatementTest.php
tests/Doctrine/Tests/DBAL/Driver/OCI8/OCI8StatementTest.php
+1
-1
BlobTest.php
tests/Doctrine/Tests/DBAL/Functional/BlobTest.php
+1
-1
ConnectionTest.php
tests/Doctrine/Tests/DBAL/Functional/ConnectionTest.php
+2
-2
DataAccessTest.php
tests/Doctrine/Tests/DBAL/Functional/DataAccessTest.php
+1
-1
ConnectionTest.php
...ne/Tests/DBAL/Functional/Driver/Mysqli/ConnectionTest.php
+2
-2
MasterSlaveConnectionTest.php
...trine/Tests/DBAL/Functional/MasterSlaveConnectionTest.php
+1
-1
ModifyLimitQueryTest.php
...s/Doctrine/Tests/DBAL/Functional/ModifyLimitQueryTest.php
+1
-1
NamedParametersTest.php
tests/Doctrine/Tests/DBAL/Functional/NamedParametersTest.php
+1
-1
PortabilityTest.php
tests/Doctrine/Tests/DBAL/Functional/PortabilityTest.php
+1
-1
ResultCacheTest.php
tests/Doctrine/Tests/DBAL/Functional/ResultCacheTest.php
+1
-1
OracleSchemaManagerTest.php
.../Tests/DBAL/Functional/Schema/OracleSchemaManagerTest.php
+1
-1
PostgreSqlSchemaManagerTest.php
...ts/DBAL/Functional/Schema/PostgreSqlSchemaManagerTest.php
+1
-1
TableGeneratorTest.php
tests/Doctrine/Tests/DBAL/Functional/TableGeneratorTest.php
+1
-1
TemporaryTableTest.php
tests/Doctrine/Tests/DBAL/Functional/TemporaryTableTest.php
+2
-2
DBAL510Test.php
tests/Doctrine/Tests/DBAL/Functional/Ticket/DBAL510Test.php
+1
-1
TypeConversionTest.php
tests/Doctrine/Tests/DBAL/Functional/TypeConversionTest.php
+1
-1
WriteTest.php
tests/Doctrine/Tests/DBAL/Functional/WriteTest.php
+1
-1
DebugStackTest.php
tests/Doctrine/Tests/DBAL/Logging/DebugStackTest.php
+2
-2
AbstractPlatformTestCase.php
...octrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php
+1
-1
ReservedKeywordsValidatorTest.php
...ne/Tests/DBAL/Platforms/ReservedKeywordsValidatorTest.php
+1
-1
SQLAzurePlatformTest.php
tests/Doctrine/Tests/DBAL/Platforms/SQLAzurePlatformTest.php
+1
-1
StatementTest.php
tests/Doctrine/Tests/DBAL/Portability/StatementTest.php
+1
-1
ExpressionBuilderTest.php
...ine/Tests/DBAL/Query/Expression/ExpressionBuilderTest.php
+1
-1
QueryBuilderTest.php
tests/Doctrine/Tests/DBAL/Query/QueryBuilderTest.php
+1
-1
MySqlSchemaManagerTest.php
tests/Doctrine/Tests/DBAL/Schema/MySqlSchemaManagerTest.php
+1
-1
MySQLSchemaTest.php
.../Doctrine/Tests/DBAL/Schema/Platforms/MySQLSchemaTest.php
+1
-1
SingleDatabaseSynchronizerTest.php
...AL/Schema/Synchronizer/SingleDatabaseSynchronizerTest.php
+1
-1
AbstractTestCase.php
...octrine/Tests/DBAL/Sharding/SQLAzure/AbstractTestCase.php
+1
-1
StatementTest.php
tests/Doctrine/Tests/DBAL/StatementTest.php
+1
-1
ArrayTest.php
tests/Doctrine/Tests/DBAL/Types/ArrayTest.php
+1
-1
ObjectTest.php
tests/Doctrine/Tests/DBAL/Types/ObjectTest.php
+1
-1
DbalTestCase.php
tests/Doctrine/Tests/DbalTestCase.php
+2
-2
DoctrineTestCase.php
tests/Doctrine/Tests/DoctrineTestCase.php
+0
-10
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.
.gitattributes
View file @
c83a43c3
...
...
@@ -8,4 +8,3 @@ build.properties export-ignore
build.xml export-ignore
phpunit.xml.dist export-ignore
run-all.sh export-ignore
composer.lock export-ignore
.gitmodules
View file @
c83a43c3
[submodule "lib/vendor/doctrine-common"]
path = lib/vendor/doctrine-common
url = git://github.com/doctrine/common.git
[submodule "lib/vendor/Symfony/Component/Console"]
path = lib/vendor/Symfony/Component/Console
url = git://github.com/symfony/Console.git
[submodule "lib/vendor/doctrine-build-common"]
path = lib/vendor/doctrine-build-common
url = git://github.com/doctrine/doctrine-build-common.git
[submodule "docs/en/_theme"]
path = docs/en/_theme
url = git://github.com/doctrine/doctrine-sphinx-theme.git
.travis.yml
View file @
c83a43c3
language
:
php
sudo
:
false
cache
:
directories
:
-
vendor
-
$HOME/.composer/cache
php
:
-
5.4
-
5.5
...
...
@@ -16,11 +23,8 @@ env:
-
DB=sqlite
-
DB=mysqli
before_install
:
-
composer self-update
install
:
-
composer update --prefer-source
-
travis_retry composer install
before_script
:
-
if [ '$DB' = 'pgsql' ]; then sudo service postgresql stop; sudo service postgresql start $POSTGRESQL_VERSION; fi
...
...
@@ -28,6 +32,7 @@ before_script:
script
:
./vendor/bin/phpunit --configuration tests/travis/$DB.travis.xml
matrix
:
fast_finish
:
true
include
:
-
php
:
5.4
env
:
DB=mariadb
...
...
@@ -106,5 +111,3 @@ matrix:
addons
:
postgresql
:
'
9.4'
sudo
:
false
phpunit.xml.dist
View file @
c83a43c3
...
...
@@ -11,37 +11,34 @@
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>
<!-- "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">-->
<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">-->
<!-- 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>
<!-- 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>
<testsuites>
<testsuite
name=
"Doctrine DBAL Test Suite"
>
...
...
tests/Doctrine/Tests/DBAL/ConfigurationTest.php
View file @
c83a43c3
...
...
@@ -39,7 +39,7 @@ class ConfigurationTest extends DbalTestCase
/**
* {@inheritdoc}
*/
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
$this
->
config
=
new
Configuration
();
}
...
...
tests/Doctrine/Tests/DBAL/ConnectionTest.php
View file @
c83a43c3
...
...
@@ -24,7 +24,7 @@ class ConnectionTest extends \Doctrine\Tests\DbalTestCase
'port'
=>
'1234'
);
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
$this
->
_conn
=
\Doctrine\DBAL\DriverManager
::
getConnection
(
$this
->
params
);
}
...
...
tests/Doctrine/Tests/DBAL/Driver/OCI8/OCI8StatementTest.php
View file @
c83a43c3
...
...
@@ -4,7 +4,7 @@ namespace Doctrine\Tests\DBAL;
class
OCI8StatementTest
extends
\Doctrine\Tests\DbalTestCase
{
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
if
(
!
extension_loaded
(
'oci8'
))
{
$this
->
markTestSkipped
(
'oci8 is not installed.'
);
...
...
tests/Doctrine/Tests/DBAL/Functional/BlobTest.php
View file @
c83a43c3
...
...
@@ -10,7 +10,7 @@ use PDO;
*/
class
BlobTest
extends
\Doctrine\Tests\DbalFunctionalTestCase
{
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
parent
::
setUp
();
...
...
tests/Doctrine/Tests/DBAL/Functional/ConnectionTest.php
View file @
c83a43c3
...
...
@@ -8,13 +8,13 @@ use Doctrine\DBAL\Types\Type;
class
ConnectionTest
extends
\Doctrine\Tests\DbalFunctionalTestCase
{
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
$this
->
resetSharedConn
();
parent
::
setUp
();
}
p
ublic
function
tearDown
()
p
rotected
function
tearDown
()
{
parent
::
tearDown
();
$this
->
resetSharedConn
();
...
...
tests/Doctrine/Tests/DBAL/Functional/DataAccessTest.php
View file @
c83a43c3
...
...
@@ -11,7 +11,7 @@ class DataAccessTest extends \Doctrine\Tests\DbalFunctionalTestCase
{
static
private
$generated
=
false
;
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
parent
::
setUp
();
...
...
tests/Doctrine/Tests/DBAL/Functional/Driver/Mysqli/ConnectionTest.php
View file @
c83a43c3
...
...
@@ -3,7 +3,7 @@ namespace Doctrine\Tests\DBAL\Functional\Driver\Mysqli;
class
ConnectionTest
extends
\Doctrine\Tests\DbalFunctionalTestCase
{
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
if
(
!
extension_loaded
(
'mysqli'
))
{
$this
->
markTestSkipped
(
'mysqli is not installed.'
);
...
...
@@ -16,7 +16,7 @@ class ConnectionTest extends \Doctrine\Tests\DbalFunctionalTestCase
}
}
p
ublic
function
tearDown
()
p
rotected
function
tearDown
()
{
parent
::
tearDown
();
}
...
...
tests/Doctrine/Tests/DBAL/Functional/MasterSlaveConnectionTest.php
View file @
c83a43c3
...
...
@@ -10,7 +10,7 @@ use Doctrine\Tests\DbalFunctionalTestCase;
*/
class
MasterSlaveConnectionTest
extends
DbalFunctionalTestCase
{
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
parent
::
setUp
();
...
...
tests/Doctrine/Tests/DBAL/Functional/ModifyLimitQueryTest.php
View file @
c83a43c3
...
...
@@ -6,7 +6,7 @@ class ModifyLimitQueryTest extends \Doctrine\Tests\DbalFunctionalTestCase
{
private
static
$tableCreated
=
false
;
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
parent
::
setUp
();
...
...
tests/Doctrine/Tests/DBAL/Functional/NamedParametersTest.php
View file @
c83a43c3
...
...
@@ -101,7 +101,7 @@ class NamedParametersTest extends \Doctrine\Tests\DbalFunctionalTestCase
);
}
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
parent
::
setUp
();
...
...
tests/Doctrine/Tests/DBAL/Functional/PortabilityTest.php
View file @
c83a43c3
...
...
@@ -14,7 +14,7 @@ class PortabilityTest extends \Doctrine\Tests\DbalFunctionalTestCase
{
private
$portableConnection
;
p
ublic
function
tearDown
()
p
rotected
function
tearDown
()
{
if
(
$this
->
portableConnection
)
{
$this
->
portableConnection
->
close
();
...
...
tests/Doctrine/Tests/DBAL/Functional/ResultCacheTest.php
View file @
c83a43c3
...
...
@@ -12,7 +12,7 @@ class ResultCacheTest extends \Doctrine\Tests\DbalFunctionalTestCase
private
$expectedResult
=
array
(
array
(
'test_int'
=>
100
,
'test_string'
=>
'foo'
),
array
(
'test_int'
=>
200
,
'test_string'
=>
'bar'
),
array
(
'test_int'
=>
300
,
'test_string'
=>
'baz'
));
private
$sqlLogger
;
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
parent
::
setUp
();
...
...
tests/Doctrine/Tests/DBAL/Functional/Schema/OracleSchemaManagerTest.php
View file @
c83a43c3
...
...
@@ -7,7 +7,7 @@ use Doctrine\Tests\TestUtil;
class
OracleSchemaManagerTest
extends
SchemaManagerFunctionalTestCase
{
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
parent
::
setUp
();
...
...
tests/Doctrine/Tests/DBAL/Functional/Schema/PostgreSqlSchemaManagerTest.php
View file @
c83a43c3
...
...
@@ -9,7 +9,7 @@ use Doctrine\DBAL\Types\Type;
class
PostgreSqlSchemaManagerTest
extends
SchemaManagerFunctionalTestCase
{
p
ublic
function
tearDown
()
p
rotected
function
tearDown
()
{
parent
::
tearDown
();
...
...
tests/Doctrine/Tests/DBAL/Functional/TableGeneratorTest.php
View file @
c83a43c3
...
...
@@ -11,7 +11,7 @@ class TableGeneratorTest extends \Doctrine\Tests\DbalFunctionalTestCase
{
private
$generator
;
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
parent
::
setUp
();
...
...
tests/Doctrine/Tests/DBAL/Functional/TemporaryTableTest.php
View file @
c83a43c3
...
...
@@ -7,7 +7,7 @@ use Doctrine\DBAL\Types\Type;
class
TemporaryTableTest
extends
\Doctrine\Tests\DbalFunctionalTestCase
{
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
parent
::
setUp
();
try
{
...
...
@@ -17,7 +17,7 @@ class TemporaryTableTest extends \Doctrine\Tests\DbalFunctionalTestCase
}
}
p
ublic
function
tearDown
()
p
rotected
function
tearDown
()
{
if
(
$this
->
_conn
)
{
try
{
...
...
tests/Doctrine/Tests/DBAL/Functional/Ticket/DBAL510Test.php
View file @
c83a43c3
...
...
@@ -10,7 +10,7 @@ use Doctrine\DBAL\Schema\Table;
*/
class
DBAL510Test
extends
\Doctrine\Tests\DbalFunctionalTestCase
{
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
parent
::
setUp
();
...
...
tests/Doctrine/Tests/DBAL/Functional/TypeConversionTest.php
View file @
c83a43c3
...
...
@@ -8,7 +8,7 @@ class TypeConversionTest extends \Doctrine\Tests\DbalFunctionalTestCase
{
static
private
$typeCounter
=
0
;
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
parent
::
setUp
();
...
...
tests/Doctrine/Tests/DBAL/Functional/WriteTest.php
View file @
c83a43c3
...
...
@@ -6,7 +6,7 @@ use PDO;
class
WriteTest
extends
\Doctrine\Tests\DbalFunctionalTestCase
{
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
parent
::
setUp
();
...
...
tests/Doctrine/Tests/DBAL/Logging/DebugStackTest.php
View file @
c83a43c3
...
...
@@ -4,12 +4,12 @@ namespace Doctrine\Tests\DBAL\Logging;
class
DebugStackTest
extends
\Doctrine\Tests\DbalTestCase
{
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
$this
->
logger
=
new
\Doctrine\DBAL\Logging\DebugStack
();
}
p
ublic
function
tearDown
()
p
rotected
function
tearDown
()
{
unset
(
$this
->
logger
);
}
...
...
tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php
View file @
c83a43c3
...
...
@@ -23,7 +23,7 @@ abstract class AbstractPlatformTestCase extends \Doctrine\Tests\DbalTestCase
abstract
public
function
createPlatform
();
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
$this
->
_platform
=
$this
->
createPlatform
();
}
...
...
tests/Doctrine/Tests/DBAL/Platforms/ReservedKeywordsValidatorTest.php
View file @
c83a43c3
...
...
@@ -12,7 +12,7 @@ class ReservedKeywordsValidatorTest extends \Doctrine\Tests\DbalTestCase
*/
private
$validator
;
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
$this
->
validator
=
new
ReservedKeywordsValidator
(
array
(
new
\Doctrine\DBAL\Platforms\Keywords\MySQLKeywords
()
...
...
tests/Doctrine/Tests/DBAL/Platforms/SQLAzurePlatformTest.php
View file @
c83a43c3
...
...
@@ -11,7 +11,7 @@ class SQLAzurePlatformTest extends DbalTestCase
{
private
$platform
;
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
$this
->
platform
=
new
\Doctrine\DBAL\Platforms\SQLAzurePlatform
();
}
...
...
tests/Doctrine/Tests/DBAL/Portability/StatementTest.php
View file @
c83a43c3
...
...
@@ -25,7 +25,7 @@ class StatementTest extends \Doctrine\Tests\DbalTestCase
/**
* {@inheritdoc}
*/
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
$this
->
wrappedStmt
=
$this
->
createWrappedStatement
();
$this
->
conn
=
$this
->
createConnection
();
...
...
tests/Doctrine/Tests/DBAL/Query/Expression/ExpressionBuilderTest.php
View file @
c83a43c3
...
...
@@ -12,7 +12,7 @@ class ExpressionBuilderTest extends \Doctrine\Tests\DbalTestCase
{
protected
$expr
;
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
$conn
=
$this
->
getMock
(
'Doctrine\DBAL\Connection'
,
array
(),
array
(),
''
,
false
);
...
...
tests/Doctrine/Tests/DBAL/Query/QueryBuilderTest.php
View file @
c83a43c3
...
...
@@ -12,7 +12,7 @@ class QueryBuilderTest extends \Doctrine\Tests\DbalTestCase
{
protected
$conn
;
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
$this
->
conn
=
$this
->
getMock
(
'Doctrine\DBAL\Connection'
,
array
(),
array
(),
''
,
false
);
...
...
tests/Doctrine/Tests/DBAL/Schema/MySqlSchemaManagerTest.php
View file @
c83a43c3
...
...
@@ -14,7 +14,7 @@ class MySqlSchemaManagerTest extends \PHPUnit_Framework_TestCase
*/
private
$manager
;
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
$eventManager
=
new
EventManager
();
$driverMock
=
$this
->
getMock
(
'Doctrine\DBAL\Driver'
);
...
...
tests/Doctrine/Tests/DBAL/Schema/Platforms/MySQLSchemaTest.php
View file @
c83a43c3
...
...
@@ -16,7 +16,7 @@ class MySQLSchemaTest extends \PHPUnit_Framework_TestCase
*/
private
$platform
;
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
$this
->
comparator
=
new
\Doctrine\DBAL\Schema\Comparator
;
$this
->
platform
=
new
\Doctrine\DBAL\Platforms\MySqlPlatform
;
...
...
tests/Doctrine/Tests/DBAL/Schema/Synchronizer/SingleDatabaseSynchronizerTest.php
View file @
c83a43c3
...
...
@@ -28,7 +28,7 @@ class SingleDatabaseSynchronizerTest extends \PHPUnit_Framework_TestCase
private
$conn
;
private
$synchronizer
;
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
$this
->
conn
=
DriverManager
::
getConnection
(
array
(
'driver'
=>
'pdo_sqlite'
,
...
...
tests/Doctrine/Tests/DBAL/Sharding/SQLAzure/AbstractTestCase.php
View file @
c83a43c3
...
...
@@ -11,7 +11,7 @@ abstract class AbstractTestCase extends \PHPUnit_Framework_TestCase
protected
$conn
;
protected
$sm
;
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
if
(
!
isset
(
$GLOBALS
[
'db_type'
])
||
strpos
(
$GLOBALS
[
'db_type'
],
"sqlsrv"
)
===
false
)
{
$this
->
markTestSkipped
(
'No driver or sqlserver driver specified.'
);
...
...
tests/Doctrine/Tests/DBAL/StatementTest.php
View file @
c83a43c3
...
...
@@ -23,7 +23,7 @@ class StatementTest extends \Doctrine\Tests\DbalTestCase
*/
private
$pdoStatement
;
p
ublic
function
setUp
()
p
rotected
function
setUp
()
{
$this
->
pdoStatement
=
$this
->
getMock
(
'\PDOStatement'
,
array
(
'execute'
,
'bindParam'
,
'bindValue'
));
$platform
=
new
\Doctrine\Tests\DBAL\Mocks\MockPlatform
();
...
...
tests/Doctrine/Tests/DBAL/Types/ArrayTest.php
View file @
c83a43c3
...
...
@@ -17,7 +17,7 @@ class ArrayTest extends \Doctrine\Tests\DbalTestCase
$this
->
_type
=
Type
::
getType
(
'array'
);
}
p
ublic
function
tearDown
()
p
rotected
function
tearDown
()
{
error_reporting
(
-
1
);
// reactive all error levels
}
...
...
tests/Doctrine/Tests/DBAL/Types/ObjectTest.php
View file @
c83a43c3
...
...
@@ -17,7 +17,7 @@ class ObjectTest extends \Doctrine\Tests\DbalTestCase
$this
->
_type
=
Type
::
getType
(
'object'
);
}
p
ublic
function
tearDown
()
p
rotected
function
tearDown
()
{
error_reporting
(
-
1
);
// reactive all error levels
}
...
...
tests/Doctrine/Tests/DbalTestCase.php
View file @
c83a43c3
...
...
@@ -5,6 +5,6 @@ namespace Doctrine\Tests;
/**
* Base testcase class for all dbal testcases.
*/
class
DbalTestCase
extends
Doctrine
TestCase
abstract
class
DbalTestCase
extends
\PHPUnit_Framework_
TestCase
{
}
\ No newline at end of file
}
tests/Doctrine/Tests/DoctrineTestCase.php
deleted
100644 → 0
View file @
ddbb789f
<?php
namespace
Doctrine\Tests
;
/**
* Base testcase class for all Doctrine testcases.
*/
abstract
class
DoctrineTestCase
extends
\PHPUnit_Framework_TestCase
{
}
\ No newline at end of file
tests/Doctrine/Tests/TestInit.php
deleted
100644 → 0
View file @
ddbb789f
<?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 @
c83a43c3
<?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 @
c83a43c3
<?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 @
c83a43c3
<?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 @
c83a43c3
<?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 @
c83a43c3
<?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