This commit is contained in:
parent
d2be4a2b48
commit
462481ebbe
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Doctrine\Tests\Mocks;
|
namespace Doctrine\Tests\Mocks;
|
||||||
|
|
||||||
use Doctrine\DBAL\Connection;
|
use Doctrine\DBAL\Connection;
|
||||||
use Doctrine\DBAL\Driver\Statement;
|
use Doctrine\DBAL\Driver\Statement;
|
||||||
|
|
||||||
@ -15,12 +16,12 @@ class ConnectionMock extends Connection
|
|||||||
private $_fetchOneResult;
|
private $_fetchOneResult;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \Exception
|
* @var \Exception|null
|
||||||
*/
|
*/
|
||||||
private $_fetchOneException;
|
private $_fetchOneException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Statement
|
* @var Statement|null
|
||||||
*/
|
*/
|
||||||
private $_queryResult;
|
private $_queryResult;
|
||||||
|
|
||||||
@ -107,7 +108,7 @@ class ConnectionMock extends Connection
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function query()
|
public function query() : Statement
|
||||||
{
|
{
|
||||||
return $this->_queryResult;
|
return $this->_queryResult;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user