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
b385c9d3
Commit
b385c9d3
authored
May 09, 2014
by
Steve Müller
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #602 from doctrine/feature/hhvm-nightly-php-5.6
HHVM nightly and PHP 5.6 in builds
parents
171a8762
850e3fae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
.travis.yml
.travis.yml
+9
-1
PDOExceptionTest.php
tests/Doctrine/Tests/DBAL/Driver/PDOExceptionTest.php
+5
-7
No files found.
.travis.yml
View file @
b385c9d3
...
...
@@ -4,7 +4,9 @@ php:
-
5.3
-
5.4
-
5.5
-
5.6
-
hhvm
-
hhvm-nightly
env
:
-
DB=mysql
...
...
@@ -15,7 +17,6 @@ env:
-
DB=mysqli
before_script
:
-
sh -c "if [ '$TRAVIS_PHP_VERSION' = 'hhvm' ]; then sudo apt-get remove --auto-remove hhvm; sudo apt-get update; sudo apt-get install -y --force-yes hhvm-nightly; fi"
-
sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests;' -U postgres; fi"
-
sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'DROP DATABASE IF EXISTS doctrine_tests_tmp;' -U postgres; fi"
-
sh -c "if [ '$DB' = 'pgsql' ]; then psql -c 'create database doctrine_tests;' -U postgres; fi"
...
...
@@ -31,6 +32,7 @@ script: phpunit --configuration tests/travis/$DB.travis.xml
matrix
:
allow_failures
:
-
php
:
hhvm
-
php
:
hhvm-nightly
exclude
:
-
php
:
hhvm
env
:
DB=pgsql POSTGRESQL_VERSION=9.1
# driver currently unsupported by HHVM
...
...
@@ -38,3 +40,9 @@ matrix:
env
:
DB=pgsql POSTGRESQL_VERSION=9.2
# driver currently unsupported by HHVM
-
php
:
hhvm
env
:
DB=pgsql POSTGRESQL_VERSION=9.3
# driver currently unsupported by HHVM
-
php
:
hhvm-nightly
env
:
DB=pgsql POSTGRESQL_VERSION=9.1
# driver currently unsupported by HHVM
-
php
:
hhvm-nightly
env
:
DB=pgsql POSTGRESQL_VERSION=9.2
# driver currently unsupported by HHVM
-
php
:
hhvm-nightly
env
:
DB=pgsql POSTGRESQL_VERSION=9.3
# driver currently unsupported by HHVM
tests/Doctrine/Tests/DBAL/Driver/PDOExceptionTest.php
View file @
b385c9d3
...
...
@@ -25,7 +25,7 @@ class PDOExceptionTest extends DbalTestCase
*
* @var \PDOException|\PHPUnit_Framework_MockObject_MockObject
*/
private
$wrappedException
Mock
;
private
$wrappedException
;
protected
function
setUp
()
{
...
...
@@ -35,13 +35,11 @@ class PDOExceptionTest extends DbalTestCase
parent
::
setUp
();
$this
->
wrappedExceptionMock
=
$this
->
getMockBuilder
(
'\PDOException'
)
->
setConstructorArgs
(
array
(
self
::
MESSAGE
,
self
::
SQLSTATE
))
->
getMock
();
$this
->
wrappedException
=
new
\PDOException
(
self
::
MESSAGE
,
self
::
SQLSTATE
);
$this
->
wrappedException
Mock
->
errorInfo
=
array
(
self
::
SQLSTATE
,
self
::
ERROR_CODE
);
$this
->
wrappedException
->
errorInfo
=
array
(
self
::
SQLSTATE
,
self
::
ERROR_CODE
);
$this
->
exception
=
new
PDOException
(
$this
->
wrappedException
Mock
);
$this
->
exception
=
new
PDOException
(
$this
->
wrappedException
);
}
public
function
testReturnsCode
()
...
...
@@ -66,6 +64,6 @@ class PDOExceptionTest extends DbalTestCase
public
function
testOriginalExceptionIsInChain
()
{
$this
->
assertSame
(
$this
->
wrappedException
Mock
,
$this
->
exception
->
getPrevious
());
$this
->
assertSame
(
$this
->
wrappedException
,
$this
->
exception
->
getPrevious
());
}
}
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