Skip to content

Commit

Permalink
doctrine#6167 doctrine#6168 - better connection mock documentation/do…
Browse files Browse the repository at this point in the history
…cblocks/return-types
  • Loading branch information
Ocramius committed Jun 21, 2017
1 parent d2be4a2 commit 462481e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/Doctrine/Tests/Mocks/ConnectionMock.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

namespace Doctrine\Tests\Mocks;

use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Driver\Statement;

Expand All @@ -15,12 +16,12 @@ class ConnectionMock extends Connection
private $_fetchOneResult;

/**
* @var \Exception
* @var \Exception|null
*/
private $_fetchOneException;

/**
* @var Statement
* @var Statement|null
*/
private $_queryResult;

Expand Down Expand Up @@ -107,7 +108,7 @@ public function fetchColumn($statement, array $params = [], $colnum = 0, array $
/**
* {@inheritdoc}
*/
public function query()
public function query() : Statement
{
return $this->_queryResult;
}
Expand Down

0 comments on commit 462481e

Please sign in to comment.