@@ -273,6 +273,10 @@ discard block |
||
| 273 | 273 | } |
| 274 | 274 | } |
| 275 | 275 | |
| 276 | + /** |
|
| 277 | + * @param integer $value1 |
|
| 278 | + * @param integer $value2 |
|
| 279 | + */ |
|
| 276 | 280 | protected function getBitAndComparisonExpressionSql($value1, $value2) |
| 277 | 281 | { |
| 278 | 282 | return '(' . $value1 . ' & ' . $value2 . ')'; |
@@ -287,6 +291,10 @@ discard block |
||
| 287 | 291 | $this->assertEquals($this->getBitAndComparisonExpressionSql(2, 4), $sql); |
| 288 | 292 | } |
| 289 | 293 | |
| 294 | + /** |
|
| 295 | + * @param integer $value1 |
|
| 296 | + * @param integer $value2 |
|
| 297 | + */ |
|
| 290 | 298 | protected function getBitOrComparisonExpressionSql($value1, $value2) |
| 291 | 299 | { |
| 292 | 300 | return '(' . $value1 . ' | ' . $value2 . ')'; |
@@ -138,7 +138,7 @@ |
||
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | /** |
| 141 | - * @return \Doctrine\DBAL\Schema\Sequence|\PHPUnit_Framework_MockObject_MockObject |
|
| 141 | + * @return \Doctrine\DBAL\Schema\Sequence |
|
| 142 | 142 | */ |
| 143 | 143 | private function createSequenceMock() |
| 144 | 144 | { |
@@ -45,11 +45,17 @@ |
||
| 45 | 45 | return $this->getMockWithoutArguments('Doctrine\DBAL\Schema\Table'); |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @param string $className |
|
| 50 | + */ |
|
| 48 | 51 | private function getMockWithoutArguments($className) |
| 49 | 52 | { |
| 50 | 53 | return $this->getMockBuilder($className)->disableOriginalConstructor()->getMock(); |
| 51 | 54 | } |
| 52 | 55 | |
| 56 | + /** |
|
| 57 | + * @param string $name |
|
| 58 | + */ |
|
| 53 | 59 | private function getStubKeyConstraint($name) |
| 54 | 60 | { |
| 55 | 61 | $constraint = $this->getMockWithoutArguments('Doctrine\DBAL\Schema\ForeignKeyConstraint'); |
@@ -83,6 +83,9 @@ |
||
| 83 | 83 | $sm->selectShard(null); |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | + /** |
|
| 87 | + * @return \Doctrine\DBAL\Connection |
|
| 88 | + */ |
|
| 86 | 89 | private function createConnection(array $params) |
| 87 | 90 | { |
| 88 | 91 | $conn = $this->getMockBuilder('Doctrine\DBAL\Connection') |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | |
| 22 | 22 | use Doctrine\DBAL\Driver\Connection; |
| 23 | 23 | use Doctrine\DBAL\Driver\ServerInfoAwareConnection; |
| 24 | -use Doctrine\DBAL\Platforms\OraclePlatform; |
|
| 25 | 24 | |
| 26 | 25 | /** |
| 27 | 26 | * OCI8 implementation of the Connection interface. |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use Doctrine\DBAL\Driver\ExceptionConverterDriver; |
| 8 | 8 | use Doctrine\DBAL\VersionAwarePlatformDriver; |
| 9 | 9 | use Doctrine\Tests\DbalTestCase; |
| 10 | -use Throwable; |
|
| 11 | 10 | |
| 12 | 11 | abstract class AbstractDriverTest extends DbalTestCase |
| 13 | 12 | { |
@@ -81,6 +81,7 @@ discard block |
||
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | 83 | * {@inheritDoc} |
| 84 | + * @param boolean $from |
|
| 84 | 85 | */ |
| 85 | 86 | public function getSubstringExpression($value, $from, $length = null) |
| 86 | 87 | { |
@@ -192,6 +193,8 @@ discard block |
||
| 192 | 193 | |
| 193 | 194 | /** |
| 194 | 195 | * {@inheritdoc} |
| 196 | + * @param string $tableName |
|
| 197 | + * @param string $columnName |
|
| 195 | 198 | */ |
| 196 | 199 | public function getIdentitySequenceName($tableName, $columnName) |
| 197 | 200 | { |
@@ -668,6 +671,9 @@ discard block |
||
| 668 | 671 | |
| 669 | 672 | /** |
| 670 | 673 | * {@inheritdoc} |
| 674 | + * @param string $tableName |
|
| 675 | + * @param string $columnName |
|
| 676 | + * @param string $comment |
|
| 671 | 677 | */ |
| 672 | 678 | public function getCommentOnColumnSQL($tableName, $columnName, $comment) |
| 673 | 679 | { |
@@ -972,7 +972,7 @@ discard block |
||
| 972 | 972 | /** |
| 973 | 973 | * @param array $view |
| 974 | 974 | * |
| 975 | - * @return mixed |
|
| 975 | + * @return boolean |
|
| 976 | 976 | */ |
| 977 | 977 | protected function _getPortableViewDefinition($view) |
| 978 | 978 | { |
@@ -1075,7 +1075,7 @@ discard block |
||
| 1075 | 1075 | * For databases that don't support subschema/namespaces this method |
| 1076 | 1076 | * returns the name of the currently connected database. |
| 1077 | 1077 | * |
| 1078 | - * @return array |
|
| 1078 | + * @return string[] |
|
| 1079 | 1079 | */ |
| 1080 | 1080 | public function getSchemaSearchPaths() |
| 1081 | 1081 | { |