Commit 22a7582d authored by Gabriel Caruso's avatar Gabriel Caruso

Add mising @var

parent 4ea3b4dc
...@@ -30,6 +30,9 @@ class ConnectionTest extends \Doctrine\Tests\DbalTestCase ...@@ -30,6 +30,9 @@ class ConnectionTest extends \Doctrine\Tests\DbalTestCase
*/ */
protected $_conn = null; protected $_conn = null;
/**
* @var array
*/
protected $params = array( protected $params = array(
'driver' => 'pdo_mysql', 'driver' => 'pdo_mysql',
'host' => 'localhost', 'host' => 'localhost',
......
...@@ -11,6 +11,9 @@ use Doctrine\DBAL\Types\Type; ...@@ -11,6 +11,9 @@ use Doctrine\DBAL\Types\Type;
class DataAccessTest extends \Doctrine\Tests\DbalFunctionalTestCase class DataAccessTest extends \Doctrine\Tests\DbalFunctionalTestCase
{ {
/**
* @var bool
*/
static private $generated = false; static private $generated = false;
protected function setUp() protected function setUp()
......
...@@ -4,6 +4,9 @@ namespace Doctrine\Tests\DBAL\Functional; ...@@ -4,6 +4,9 @@ namespace Doctrine\Tests\DBAL\Functional;
class ModifyLimitQueryTest extends \Doctrine\Tests\DbalFunctionalTestCase class ModifyLimitQueryTest extends \Doctrine\Tests\DbalFunctionalTestCase
{ {
/**
* @var bool
*/
private static $tableCreated = false; private static $tableCreated = false;
protected function setUp() protected function setUp()
......
...@@ -13,6 +13,9 @@ use Doctrine\DBAL\Portability\Connection as ConnectionPortability; ...@@ -13,6 +13,9 @@ use Doctrine\DBAL\Portability\Connection as ConnectionPortability;
*/ */
class PortabilityTest extends \Doctrine\Tests\DbalFunctionalTestCase class PortabilityTest extends \Doctrine\Tests\DbalFunctionalTestCase
{ {
/**
* @var Connection
*/
private $portableConnection; private $portableConnection;
protected function tearDown() protected function tearDown()
......
...@@ -10,7 +10,14 @@ use Doctrine\DBAL\FetchMode; ...@@ -10,7 +10,14 @@ use Doctrine\DBAL\FetchMode;
*/ */
class ResultCacheTest extends \Doctrine\Tests\DbalFunctionalTestCase class ResultCacheTest extends \Doctrine\Tests\DbalFunctionalTestCase
{ {
/**
* @var Type
*/
private $expectedResult = array(array('test_int' => 100, 'test_string' => 'foo'), array('test_int' => 200, 'test_string' => 'bar'), array('test_int' => 300, 'test_string' => 'baz')); private $expectedResult = array(array('test_int' => 100, 'test_string' => 'foo'), array('test_int' => 200, 'test_string' => 'bar'), array('test_int' => 300, 'test_string' => 'baz'));
/**
* @var \Doctrine\DBAL\Logging\DebugStack
*/
private $sqlLogger; private $sqlLogger;
protected function setUp() protected function setUp()
......
...@@ -9,6 +9,9 @@ use Doctrine\DBAL\Id\TableGenerator; ...@@ -9,6 +9,9 @@ use Doctrine\DBAL\Id\TableGenerator;
*/ */
class TableGeneratorTest extends \Doctrine\Tests\DbalFunctionalTestCase class TableGeneratorTest extends \Doctrine\Tests\DbalFunctionalTestCase
{ {
/**
* @var TableGenerator
*/
private $generator; private $generator;
protected function setUp() protected function setUp()
......
...@@ -11,6 +11,9 @@ use PDO; ...@@ -11,6 +11,9 @@ use PDO;
*/ */
class DBAL630Test extends \Doctrine\Tests\DbalFunctionalTestCase class DBAL630Test extends \Doctrine\Tests\DbalFunctionalTestCase
{ {
/**
* @var bool
*/
private $running = false; private $running = false;
protected function setUp() protected function setUp()
......
...@@ -6,6 +6,9 @@ use Doctrine\DBAL\Types\Type; ...@@ -6,6 +6,9 @@ use Doctrine\DBAL\Types\Type;
class TypeConversionTest extends \Doctrine\Tests\DbalFunctionalTestCase class TypeConversionTest extends \Doctrine\Tests\DbalFunctionalTestCase
{ {
/**
* @var int
*/
static private $typeCounter = 0; static private $typeCounter = 0;
protected function setUp() protected function setUp()
......
...@@ -9,6 +9,9 @@ use Doctrine\Tests\DbalTestCase; ...@@ -9,6 +9,9 @@ use Doctrine\Tests\DbalTestCase;
*/ */
class SQLAzurePlatformTest extends DbalTestCase class SQLAzurePlatformTest extends DbalTestCase
{ {
/**
* @var \Doctrine\DBAL\Platforms\SQLAzurePlatform
*/
private $platform; private $platform;
protected function setUp() protected function setUp()
...@@ -26,4 +29,3 @@ class SQLAzurePlatformTest extends DbalTestCase ...@@ -26,4 +29,3 @@ class SQLAzurePlatformTest extends DbalTestCase
self::assertEquals(array('CREATE TABLE tbl (id INT NOT NULL) FEDERATED ON (TblId = id)'), $this->platform->getCreateTableSQL($table)); self::assertEquals(array('CREATE TABLE tbl (id INT NOT NULL) FEDERATED ON (TblId = id)'), $this->platform->getCreateTableSQL($table));
} }
} }
...@@ -10,6 +10,9 @@ use Doctrine\DBAL\Query\Expression\ExpressionBuilder; ...@@ -10,6 +10,9 @@ use Doctrine\DBAL\Query\Expression\ExpressionBuilder;
*/ */
class ExpressionBuilderTest extends \Doctrine\Tests\DbalTestCase class ExpressionBuilderTest extends \Doctrine\Tests\DbalTestCase
{ {
/**
* @var ExpressionBuilder
*/
protected $expr; protected $expr;
protected function setUp() protected function setUp()
......
...@@ -11,6 +11,9 @@ use Doctrine\DBAL\Query\QueryBuilder; ...@@ -11,6 +11,9 @@ use Doctrine\DBAL\Query\QueryBuilder;
*/ */
class QueryBuilderTest extends \Doctrine\Tests\DbalTestCase class QueryBuilderTest extends \Doctrine\Tests\DbalTestCase
{ {
/**
* @var \Doctrine\DBAL\Connection
*/
protected $conn; protected $conn;
protected function setUp() protected function setUp()
......
...@@ -8,7 +8,14 @@ use Doctrine\DBAL\Sharding\SQLAzure\SQLAzureShardManager; ...@@ -8,7 +8,14 @@ use Doctrine\DBAL\Sharding\SQLAzure\SQLAzureShardManager;
abstract class AbstractTestCase extends \PHPUnit\Framework\TestCase abstract class AbstractTestCase extends \PHPUnit\Framework\TestCase
{ {
/**
* @var \Doctrine\DBAL\Connection
*/
protected $conn; protected $conn;
/**
* @var SQLAzureShardManager
*/
protected $sm; protected $sm;
protected function setUp() protected function setUp()
......
...@@ -14,6 +14,9 @@ class RunSqlCommandTest extends \PHPUnit\Framework\TestCase ...@@ -14,6 +14,9 @@ class RunSqlCommandTest extends \PHPUnit\Framework\TestCase
/** @var RunSqlCommand */ /** @var RunSqlCommand */
private $command; private $command;
/**
* @var \Doctrine\DBAL\Connection
*/
private $connectionMock; private $connectionMock;
protected function setUp() protected function setUp()
......
...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform; ...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform;
class ArrayTest extends \Doctrine\Tests\DbalTestCase class ArrayTest extends \Doctrine\Tests\DbalTestCase
{ {
protected /**
$_platform, * @var MockPlatform
$_type; */
protected $_platform;
/**
* @var Type
*/
protected $_type;
protected function setUp() protected function setUp()
{ {
......
...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform; ...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform;
class BooleanTest extends \Doctrine\Tests\DbalTestCase class BooleanTest extends \Doctrine\Tests\DbalTestCase
{ {
protected /**
$_platform, * @var MockPlatform
$_type; */
protected $_platform;
/**
* @var Type
*/
protected $_type;
protected function setUp() protected function setUp()
{ {
......
...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform; ...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform;
class DecimalTest extends \Doctrine\Tests\DbalTestCase class DecimalTest extends \Doctrine\Tests\DbalTestCase
{ {
protected /**
$_platform, * @var MockPlatform
$_type; */
protected $_platform;
/**
* @var Type
*/
protected $_type;
protected function setUp() protected function setUp()
{ {
......
...@@ -7,7 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform; ...@@ -7,7 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform;
class FloatTest extends \Doctrine\Tests\DbalTestCase class FloatTest extends \Doctrine\Tests\DbalTestCase
{ {
protected $_platform, $_type; /**
* @var MockPlatform
*/
protected $_platform;
/**
* @var Type
*/
protected $_type;
protected function setUp() protected function setUp()
{ {
......
...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform; ...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform;
class GuidTest extends \Doctrine\Tests\DbalTestCase class GuidTest extends \Doctrine\Tests\DbalTestCase
{ {
protected /**
$_platform, * @var MockPlatform
$_type; */
protected $_platform;
/**
* @var Type
*/
protected $_type;
protected function setUp() protected function setUp()
{ {
......
...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform; ...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform;
class IntegerTest extends \Doctrine\Tests\DbalTestCase class IntegerTest extends \Doctrine\Tests\DbalTestCase
{ {
protected /**
$_platform, * @var MockPlatform
$_type; */
protected $_platform;
/**
* @var Type
*/
protected $_type;
protected function setUp() protected function setUp()
{ {
......
...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform; ...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform;
class ObjectTest extends \Doctrine\Tests\DbalTestCase class ObjectTest extends \Doctrine\Tests\DbalTestCase
{ {
protected /**
$_platform, * @var MockPlatform
$_type; */
protected $_platform;
/**
* @var Type
*/
protected $_type;
protected function setUp() protected function setUp()
{ {
......
...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform; ...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform;
class SmallIntTest extends \Doctrine\Tests\DbalTestCase class SmallIntTest extends \Doctrine\Tests\DbalTestCase
{ {
protected /**
$_platform, * @var MockPlatform
$_type; */
protected $_platform;
/**
* @var Type
*/
protected $_type;
protected function setUp() protected function setUp()
{ {
......
...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform; ...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform;
class StringTest extends \Doctrine\Tests\DbalTestCase class StringTest extends \Doctrine\Tests\DbalTestCase
{ {
protected /**
$_platform, * @var MockPlatform
$_type; */
protected $_platform;
/**
* @var Type
*/
protected $_type;
protected function setUp() protected function setUp()
{ {
......
...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform; ...@@ -7,9 +7,15 @@ use Doctrine\Tests\DBAL\Mocks\MockPlatform;
class VarDateTimeTest extends \Doctrine\Tests\DbalTestCase class VarDateTimeTest extends \Doctrine\Tests\DbalTestCase
{ {
protected /**
$_platform, * @var MockPlatform
$_type; */
protected $_platform;
/**
* @var Type
*/
protected $_type;
protected function setUp() protected function setUp()
{ {
......
...@@ -9,6 +9,9 @@ namespace Doctrine\Tests; ...@@ -9,6 +9,9 @@ namespace Doctrine\Tests;
*/ */
class DbalPerformanceTestListener extends \PHPUnit\Framework\BaseTestListener class DbalPerformanceTestListener extends \PHPUnit\Framework\BaseTestListener
{ {
/**
* @var array
*/
private $timings = []; private $timings = [];
/** /**
......
...@@ -4,9 +4,24 @@ namespace Doctrine\Tests\Mocks; ...@@ -4,9 +4,24 @@ namespace Doctrine\Tests\Mocks;
class ConnectionMock extends \Doctrine\DBAL\Connection class ConnectionMock extends \Doctrine\DBAL\Connection
{ {
/**
* @var
*/
private $_fetchOneResult; private $_fetchOneResult;
/**
* @var DatabasePlatformMock
*/
private $_platformMock; private $_platformMock;
/**
* @var int
*/
private $_lastInsertId = 0; private $_lastInsertId = 0;
/**
* @var array
*/
private $_inserts = array(); private $_inserts = array();
public function __construct(array $params, $driver, $config = null, $eventManager = null) public function __construct(array $params, $driver, $config = null, $eventManager = null)
...@@ -84,4 +99,4 @@ class ConnectionMock extends \Doctrine\DBAL\Connection ...@@ -84,4 +99,4 @@ class ConnectionMock extends \Doctrine\DBAL\Connection
$this->_inserts = array(); $this->_inserts = array();
$this->_lastInsertId = 0; $this->_lastInsertId = 0;
} }
} }
\ No newline at end of file
...@@ -6,8 +6,19 @@ use Doctrine\DBAL\DBALException; ...@@ -6,8 +6,19 @@ use Doctrine\DBAL\DBALException;
class DatabasePlatformMock extends \Doctrine\DBAL\Platforms\AbstractPlatform class DatabasePlatformMock extends \Doctrine\DBAL\Platforms\AbstractPlatform
{ {
/**
* @var string
*/
private $_sequenceNextValSql = ""; private $_sequenceNextValSql = "";
/**
* @var bool
*/
private $_prefersIdentityColumns = true; private $_prefersIdentityColumns = true;
/**
* @var bool
*/
private $_prefersSequences = false; private $_prefersSequences = false;
/** /**
...@@ -87,4 +98,4 @@ class DatabasePlatformMock extends \Doctrine\DBAL\Platforms\AbstractPlatform ...@@ -87,4 +98,4 @@ class DatabasePlatformMock extends \Doctrine\DBAL\Platforms\AbstractPlatform
{ {
throw DBALException::notSupported(__METHOD__); throw DBALException::notSupported(__METHOD__);
} }
} }
\ No newline at end of file
...@@ -5,8 +5,14 @@ namespace Doctrine\Tests\Mocks; ...@@ -5,8 +5,14 @@ namespace Doctrine\Tests\Mocks;
class DriverMock implements \Doctrine\DBAL\Driver class DriverMock implements \Doctrine\DBAL\Driver
{ {
/**
* @var DatabasePlatformMock
*/
private $_platformMock; private $_platformMock;
/**
* @var SchemaManagerMock
*/
private $_schemaManagerMock; private $_schemaManagerMock;
public function connect(array $params, $username = null, $password = null, array $driverOptions = array()) public function connect(array $params, $username = null, $password = null, array $driverOptions = array())
......
...@@ -37,6 +37,9 @@ class TaskMock extends \Doctrine\Common\Cli\Tasks\AbstractTask ...@@ -37,6 +37,9 @@ class TaskMock extends \Doctrine\Common\Cli\Tasks\AbstractTask
*/ */
static public $instances = array(); static public $instances = array();
/**
* @var int
*/
private $runCounter = 0; private $runCounter = 0;
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment