@@ -857,6 +857,9 @@ discard block |
||
| 857 | 857 | return $table; |
| 858 | 858 | } |
| 859 | 859 | |
| 860 | + /** |
|
| 861 | + * @param string $name |
|
| 862 | + */ |
|
| 860 | 863 | protected function getTestTable($name, $options=array()) |
| 861 | 864 | { |
| 862 | 865 | $table = new Table($name, array(), array(), array(), false, $options); |
@@ -868,6 +871,9 @@ discard block |
||
| 868 | 871 | return $table; |
| 869 | 872 | } |
| 870 | 873 | |
| 874 | + /** |
|
| 875 | + * @param string $name |
|
| 876 | + */ |
|
| 871 | 877 | protected function getTestCompositeTable($name) |
| 872 | 878 | { |
| 873 | 879 | $table = new Table($name, array(), array(), array(), false, array()); |
@@ -879,6 +885,10 @@ discard block |
||
| 879 | 885 | return $table; |
| 880 | 886 | } |
| 881 | 887 | |
| 888 | + /** |
|
| 889 | + * @param Table[] $tables |
|
| 890 | + * @param string $tableName |
|
| 891 | + */ |
|
| 882 | 892 | protected function assertHasTable($tables, $tableName) |
| 883 | 893 | { |
| 884 | 894 | $foundTable = false; |
@@ -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 | { |
@@ -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 | { |