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
a3701527
Commit
a3701527
authored
Feb 05, 2017
by
Marco Pivetta
Committed by
GitHub
Feb 05, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2630 from deeky666/DBAL-2626
[DBAL2626] Add PHPUnit config for continuousphp Oracle testing
parents
f491c788
090329a7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
3 deletions
+50
-3
OCI8ConnectionTest.php
.../Tests/DBAL/Functional/Driver/OCI8/OCI8ConnectionTest.php
+12
-3
oci8.phpunit.continuousphp.xml
tests/continuousphp/oci8.phpunit.continuousphp.xml
+38
-0
No files found.
tests/Doctrine/Tests/DBAL/Functional/Driver/OCI8/OCI8ConnectionTest.php
View file @
a3701527
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
namespace
Doctrine\Tests\DBAL\Functional\Driver\OCI8
;
namespace
Doctrine\Tests\DBAL\Functional\Driver\OCI8
;
use
Doctrine\DBAL\Driver\OCI8\Driver
;
use
Doctrine\DBAL\Driver\OCI8\Driver
;
use
Doctrine\DBAL\Schema\Table
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
use
Doctrine\Tests\DbalFunctionalTestCase
;
class
OCI8ConnectionTest
extends
DbalFunctionalTestCase
class
OCI8ConnectionTest
extends
DbalFunctionalTestCase
...
@@ -32,12 +33,20 @@ class OCI8ConnectionTest extends DbalFunctionalTestCase
...
@@ -32,12 +33,20 @@ class OCI8ConnectionTest extends DbalFunctionalTestCase
*/
*/
public
function
testLastInsertIdAcceptsFqn
()
public
function
testLastInsertIdAcceptsFqn
()
{
{
$this
->
_conn
->
executeUpdate
(
'CREATE SEQUENCE dbal2595_seq'
);
$platform
=
$this
->
_conn
->
getDatabasePlatform
();
$this
->
_conn
->
executeUpdate
(
'CREATE TABLE DBAL2595(id NUMBER DEFAULT dbal2595_seq.NEXTVAL, foo NUMBER)'
);
$schemaManager
=
$this
->
_conn
->
getSchemaManager
();
$table
=
new
Table
(
'DBAL2595'
);
$table
->
addColumn
(
'id'
,
'integer'
,
array
(
'autoincrement'
=>
true
));
$table
->
addColumn
(
'foo'
,
'integer'
);
$schemaManager
->
dropAndCreateTable
(
$table
);
$this
->
_conn
->
executeUpdate
(
'INSERT INTO DBAL2595 (foo) VALUES (1)'
);
$this
->
_conn
->
executeUpdate
(
'INSERT INTO DBAL2595 (foo) VALUES (1)'
);
$schema
=
$this
->
_conn
->
getDatabase
();
$schema
=
$this
->
_conn
->
getDatabase
();
$sequence
=
$platform
->
getIdentitySequenceName
(
$schema
.
'.DBAL2595'
,
'id'
);
$this
->
assertSame
(
1
,
$this
->
driverConnection
->
lastInsertId
(
$s
chema
.
'.dbal2595_seq'
));
$this
->
assertSame
(
1
,
$this
->
driverConnection
->
lastInsertId
(
$s
equence
));
}
}
}
}
tests/continuousphp/oci8.phpunit.continuousphp.xml
0 → 100644
View file @
a3701527
<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=
"oci8"
/>
<var
name=
"db_host"
value=
"oracle-xe-11"
/>
<var
name=
"db_username"
value=
"C##doctrine"
/>
<var
name=
"db_password"
value=
"ORACLE"
/>
<var
name=
"db_name"
value=
"XE"
/>
<var
name=
"db_port"
value=
"1521"
/>
<var
name=
"db_event_subscribers"
value=
"Doctrine\DBAL\Event\Listeners\OracleSessionInit"
/>
<var
name=
"tmpdb_type"
value=
"oci8"
/>
<var
name=
"tmpdb_host"
value=
"oracle-xe-11"
/>
<var
name=
"tmpdb_username"
value=
"ORACLE"
/>
<var
name=
"tmpdb_password"
value=
"ORACLE"
/>
<var
name=
"tmpdb_name"
value=
"XE"
/>
<var
name=
"tmpdb_port"
value=
"1521"
/>
</php>
<testsuites>
<testsuite
name=
"Doctrine DBAL Test Suite"
>
<directory>
../Doctrine/Tests/DBAL
</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>
performance
</group>
<group>
locking_functional
</group>
</exclude>
</groups>
</phpunit>
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