@@ -173,6 +173,10 @@ discard block |
||
| 173 | 173 | */ |
| 174 | 174 | public $phones; |
| 175 | 175 | |
| 176 | + /** |
|
| 177 | + * @param string $email |
|
| 178 | + * @param string $name |
|
| 179 | + */ |
|
| 176 | 180 | public function __construct($email, $name, array $numbers = []) |
| 177 | 181 | { |
| 178 | 182 | $this->name = $name; |
@@ -208,6 +212,9 @@ discard block |
||
| 208 | 212 | */ |
| 209 | 213 | public $user; |
| 210 | 214 | |
| 215 | + /** |
|
| 216 | + * @param DDC1335User $user |
|
| 217 | + */ |
|
| 211 | 218 | public function __construct($user, $number) |
| 212 | 219 | { |
| 213 | 220 | $this->user = $user; |
@@ -119,6 +119,10 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | public $driverRides; |
| 121 | 121 | |
| 122 | + /** |
|
| 123 | + * @param integer $id |
|
| 124 | + * @param string $name |
|
| 125 | + */ |
|
| 122 | 126 | public function __construct($id, $name) |
| 123 | 127 | { |
| 124 | 128 | $this->driverRides = new ArrayCollection(); |
@@ -181,6 +185,10 @@ discard block |
||
| 181 | 185 | */ |
| 182 | 186 | public $carRides; |
| 183 | 187 | |
| 188 | + /** |
|
| 189 | + * @param string $brand |
|
| 190 | + * @param string $model |
|
| 191 | + */ |
|
| 184 | 192 | public function __construct($brand, $model) |
| 185 | 193 | { |
| 186 | 194 | $this->carRides = new ArrayCollection(); |
@@ -227,6 +227,9 @@ discard block |
||
| 227 | 227 | $this->assertEquals([], $metadata); |
| 228 | 228 | } |
| 229 | 229 | |
| 230 | + /** |
|
| 231 | + * @param \PHPUnit_Framework_MockObject_MockObject $conn |
|
| 232 | + */ |
|
| 230 | 233 | protected function _createEntityManager($metadataDriver, $conn = null) |
| 231 | 234 | { |
| 232 | 235 | $driverMock = new DriverMock(); |
@@ -255,7 +258,6 @@ discard block |
||
| 255 | 258 | } |
| 256 | 259 | |
| 257 | 260 | /** |
| 258 | - * @param string $class |
|
| 259 | 261 | * @return ClassMetadata |
| 260 | 262 | */ |
| 261 | 263 | protected function _createValidClassMetadata() |
@@ -469,6 +471,10 @@ discard block |
||
| 469 | 471 | return $this->mockMetadata[$className]; |
| 470 | 472 | } |
| 471 | 473 | |
| 474 | + /** |
|
| 475 | + * @param string $className |
|
| 476 | + * @param ClassMetadata $metadata |
|
| 477 | + */ |
|
| 472 | 478 | public function setMetadataForClass($className, $metadata) |
| 473 | 479 | { |
| 474 | 480 | $this->mockMetadata[$className] = $metadata; |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Doctrine\Instantiator\Instantiator; |
| 6 | 6 | use Doctrine\ORM\Mapping\ReflectionEmbeddedProperty; |
| 7 | 7 | use Doctrine\Tests\Models\Generic\BooleanModel; |
| 8 | -use Doctrine\Tests\Models\Mapping\Entity; |
|
| 9 | 8 | use Doctrine\Tests\Models\Reflection\AbstractEmbeddable; |
| 10 | 9 | use Doctrine\Tests\Models\Reflection\ArrayObjectExtendingClass; |
| 11 | 10 | use Doctrine\Tests\Models\Reflection\ConcreteEmbeddable; |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Doctrine\Tests\ORM\Performance; |
| 4 | 4 | |
| 5 | -use Doctrine\ORM\Query; |
|
| 6 | 5 | use Doctrine\Tests\Models\CMS\CmsUser; |
| 7 | 6 | use Doctrine\Tests\Models\CMS\CmsGroup; |
| 8 | 7 | use Doctrine\Tests\Models\CMS\CmsArticle; |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use Doctrine\DBAL\Types\Type as DBALType; |
| 8 | 8 | use Doctrine\ORM\Persisters\Entity\BasicEntityPersister; |
| 9 | 9 | use Doctrine\Tests\Models\CustomType\CustomTypeChild; |
| 10 | -use Doctrine\Tests\Models\CustomType\CustomTypeFriend; |
|
| 11 | 10 | use Doctrine\Tests\Models\CustomType\CustomTypeParent; |
| 12 | 11 | use Doctrine\Tests\Models\Generic\NonAlphaColumnsEntity; |
| 13 | 12 | use Doctrine\Tests\OrmTestCase; |
@@ -38,6 +38,10 @@ |
||
| 38 | 38 | return $query->getSql(); |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param string $dqlToBeTested |
|
| 43 | + * @param string $sqlToBeConfirmed |
|
| 44 | + */ |
|
| 41 | 45 | public function assertSqlGeneration($dqlToBeTested, $sqlToBeConfirmed, $treeWalkers = [], $outputWalker = null) |
| 42 | 46 | { |
| 43 | 47 | try { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Doctrine\Common\Cache\ArrayCache; |
| 6 | 6 | use Doctrine\Common\Collections\ArrayCollection; |
| 7 | - |
|
| 8 | 7 | use Doctrine\ORM\EntityManager; |
| 9 | 8 | use Doctrine\ORM\Query\Parameter; |
| 10 | 9 | use Doctrine\Tests\Mocks\DriverConnectionMock; |
@@ -43,6 +43,10 @@ |
||
| 43 | 43 | $this->_em = $this->_getTestEntityManager(); |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $dqlToBeTested |
|
| 48 | + * @param string $sqlToBeConfirmed |
|
| 49 | + */ |
|
| 46 | 50 | public function assertSqlGeneration($dqlToBeTested, $sqlToBeConfirmed) |
| 47 | 51 | { |
| 48 | 52 | try { |