@@ -259,6 +259,7 @@ discard block |
||
259 | 259 | |
260 | 260 | /** |
261 | 261 | * {@inheritDoc} |
262 | + * @param string $name |
|
262 | 263 | */ |
263 | 264 | public function getColumnDeclarationSQL($name, array $field) |
264 | 265 | { |
@@ -657,6 +658,7 @@ discard block |
||
657 | 658 | |
658 | 659 | /** |
659 | 660 | * {@inheritDoc} |
661 | + * @param string $tableName |
|
660 | 662 | */ |
661 | 663 | protected function _getCreateTableSQL($tableName, array $columns, array $options = array()) |
662 | 664 | { |
@@ -22,7 +22,6 @@ |
||
22 | 22 | namespace Crate\Test\DBAL\Functional; |
23 | 23 | |
24 | 24 | use Crate\Test\DBAL\DBALFunctionalTestCase; |
25 | -use Doctrine\DBAL\DBALException; |
|
26 | 25 | |
27 | 26 | class BindingTestCase extends DBALFunctionalTestCase |
28 | 27 | { |
@@ -113,6 +113,12 @@ |
||
113 | 113 | $this->assertLimitResult(array(2), $sql, 1, 1); |
114 | 114 | } |
115 | 115 | |
116 | + /** |
|
117 | + * @param integer[] $expectedResults |
|
118 | + * @param string $sql |
|
119 | + * @param integer $limit |
|
120 | + * @param integer $offset |
|
121 | + */ |
|
116 | 122 | public function assertLimitResult($expectedResults, $sql, $limit, $offset) |
117 | 123 | { |
118 | 124 | $p = $this->_conn->getDatabasePlatform(); |
@@ -105,16 +105,25 @@ |
||
105 | 105 | throw $e; |
106 | 106 | } |
107 | 107 | |
108 | + /** |
|
109 | + * @param string $stmt |
|
110 | + */ |
|
108 | 111 | public function execute($stmt) |
109 | 112 | { |
110 | 113 | return $this->_conn->query($stmt); |
111 | 114 | } |
112 | 115 | |
116 | + /** |
|
117 | + * @param string $table_name |
|
118 | + */ |
|
113 | 119 | public function refresh($table_name) |
114 | 120 | { |
115 | 121 | $this->_conn->query('REFRESH TABLE ' . $table_name); |
116 | 122 | } |
117 | 123 | |
124 | + /** |
|
125 | + * @param string $sql |
|
126 | + */ |
|
118 | 127 | public function prepareStatement($sql) |
119 | 128 | { |
120 | 129 | return $this->_conn->prepare($sql); |
@@ -207,6 +207,9 @@ discard block |
||
207 | 207 | $this->_sm->dropAndCreateTable($table); |
208 | 208 | } |
209 | 209 | |
210 | + /** |
|
211 | + * @param string $name |
|
212 | + */ |
|
210 | 213 | protected function getTestTable($name, $options=array()) |
211 | 214 | { |
212 | 215 | $table = new Table($name, array(), array(), array(), false, $options); |
@@ -218,6 +221,9 @@ discard block |
||
218 | 221 | return $table; |
219 | 222 | } |
220 | 223 | |
224 | + /** |
|
225 | + * @param string $name |
|
226 | + */ |
|
221 | 227 | protected function getTestCompositeTable($name) |
222 | 228 | { |
223 | 229 | $table = new Table($name, array(), array(), array(), false, array()); |
@@ -24,7 +24,6 @@ |
||
24 | 24 | |
25 | 25 | use Crate\DBAL\Platforms\CratePlatform; |
26 | 26 | use Crate\DBAL\Types\TimestampType; |
27 | -use Crate\Test\DBAL\DBALFunctionalTestCase; |
|
28 | 27 | use Crate\DBAL\Types\ArrayType; |
29 | 28 | use Crate\DBAL\Types\MapType; |
30 | 29 | use Doctrine\DBAL\Types\Type; |