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
befc59af
Unverified
Commit
befc59af
authored
Apr 22, 2020
by
Grégoire Paris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve phpdoc
parent
a8c772d8
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
5 deletions
+20
-5
AbstractDriverTest.php
tests/Doctrine/Tests/DBAL/Driver/AbstractDriverTest.php
+3
-0
SqlitePlatformTest.php
tests/Doctrine/Tests/DBAL/Platforms/SqlitePlatformTest.php
+6
-0
MySqlSchemaManagerTest.php
tests/Doctrine/Tests/DBAL/Schema/MySqlSchemaManagerTest.php
+2
-1
SQLAzureShardManagerTest.php
...Tests/DBAL/Sharding/SQLAzure/SQLAzureShardManagerTest.php
+3
-0
StatementTest.php
tests/Doctrine/Tests/DBAL/StatementTest.php
+4
-3
RunSqlCommandTest.php
...s/Doctrine/Tests/DBAL/Tools/Console/RunSqlCommandTest.php
+2
-1
No files found.
tests/Doctrine/Tests/DBAL/Driver/AbstractDriverTest.php
View file @
befc59af
...
...
@@ -198,6 +198,9 @@ abstract class AbstractDriverTest extends DbalTestCase
*/
abstract
protected
function
createSchemaManager
(
Connection
$connection
)
:
AbstractSchemaManager
;
/**
* @return Connection&MockObject
*/
protected
function
getConnectionMock
()
:
Connection
{
return
$this
->
getMockBuilder
(
Connection
::
class
)
...
...
tests/Doctrine/Tests/DBAL/Platforms/SqlitePlatformTest.php
View file @
befc59af
...
...
@@ -13,6 +13,12 @@ use Doctrine\DBAL\Types\Type;
class
SqlitePlatformTest
extends
AbstractPlatformTestCase
{
/** @var SqlitePlatform */
protected
$platform
;
/**
* @return SqlitePlatform
*/
public
function
createPlatform
()
:
AbstractPlatform
{
return
new
SqlitePlatform
();
...
...
tests/Doctrine/Tests/DBAL/Schema/MySqlSchemaManagerTest.php
View file @
befc59af
...
...
@@ -10,6 +10,7 @@ use Doctrine\DBAL\Platforms\MySqlPlatform;
use
Doctrine\DBAL\Schema\AbstractSchemaManager
;
use
Doctrine\DBAL\Schema\ForeignKeyConstraint
;
use
Doctrine\DBAL\Schema\MySqlSchemaManager
;
use
PHPUnit\Framework\MockObject\MockObject
;
use
PHPUnit\Framework\TestCase
;
use
function
array_map
;
...
...
@@ -18,7 +19,7 @@ class MySqlSchemaManagerTest extends TestCase
/** @var AbstractSchemaManager */
private
$manager
;
/** @var Connection */
/** @var Connection
&MockObject
*/
private
$conn
;
protected
function
setUp
()
:
void
...
...
tests/Doctrine/Tests/DBAL/Sharding/SQLAzure/SQLAzureShardManagerTest.php
View file @
befc59af
...
...
@@ -5,6 +5,7 @@ namespace Doctrine\Tests\DBAL\Sharding\SQLAzure;
use
Doctrine\DBAL\Connection
;
use
Doctrine\DBAL\Sharding\ShardingException
;
use
Doctrine\DBAL\Sharding\SQLAzure\SQLAzureShardManager
;
use
PHPUnit\Framework\MockObject\MockObject
;
use
PHPUnit\Framework\TestCase
;
class
SQLAzureShardManagerTest
extends
TestCase
...
...
@@ -81,6 +82,8 @@ class SQLAzureShardManagerTest extends TestCase
/**
* @param mixed[] $params
*
* @return Connection&MockObject
*/
private
function
createConnection
(
array
$params
)
:
Connection
{
...
...
tests/Doctrine/Tests/DBAL/StatementTest.php
View file @
befc59af
...
...
@@ -14,16 +14,17 @@ use Doctrine\DBAL\Statement;
use
Doctrine\Tests\DbalTestCase
;
use
Exception
;
use
PDOStatement
;
use
PHPUnit\Framework\MockObject\MockObject
;
class
StatementTest
extends
DbalTestCase
{
/** @var Connection */
/** @var Connection
&MockObject
*/
private
$conn
;
/** @var Configuration */
/** @var Configuration
&MockObject
*/
private
$configuration
;
/** @var PDOStatement */
/** @var PDOStatement
&MockObject
*/
private
$pdoStatement
;
protected
function
setUp
()
:
void
...
...
tests/Doctrine/Tests/DBAL/Tools/Console/RunSqlCommandTest.php
View file @
befc59af
...
...
@@ -6,6 +6,7 @@ use Doctrine\DBAL\Connection;
use
Doctrine\DBAL\Tools\Console\Command\RunSqlCommand
;
use
Doctrine\DBAL\Tools\Console\ConsoleRunner
;
use
LogicException
;
use
PHPUnit\Framework\MockObject\MockObject
;
use
PHPUnit\Framework\TestCase
;
use
RuntimeException
;
use
Symfony\Component\Console\Application
;
...
...
@@ -18,7 +19,7 @@ class RunSqlCommandTest extends TestCase
/** @var RunSqlCommand */
private
$command
;
/** @var Connection */
/** @var Connection
&MockObject
*/
private
$connectionMock
;
protected
function
setUp
()
:
void
...
...
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