@@ -4,13 +4,12 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\ORM\PersistentCollection; |
6 | 6 | use Doctrine\ORM\Proxy\Proxy; |
7 | -use Doctrine\Tests\Models\Company\CompanyPerson, |
|
8 | - Doctrine\Tests\Models\Company\CompanyEmployee, |
|
9 | - Doctrine\Tests\Models\Company\CompanyManager, |
|
10 | - Doctrine\Tests\Models\Company\CompanyOrganization, |
|
11 | - Doctrine\Tests\Models\Company\CompanyAuction, |
|
12 | - Doctrine\Tests\Models\Company\CompanyRaffle; |
|
13 | - |
|
7 | +use Doctrine\Tests\Models\Company\CompanyPerson; |
|
8 | +use Doctrine\Tests\Models\Company\CompanyEmployee; |
|
9 | +use Doctrine\Tests\Models\Company\CompanyManager; |
|
10 | +use Doctrine\Tests\Models\Company\CompanyOrganization; |
|
11 | +use Doctrine\Tests\Models\Company\CompanyAuction; |
|
12 | +use Doctrine\Tests\Models\Company\CompanyRaffle; |
|
14 | 13 | use Doctrine\Common\Collections\Criteria; |
15 | 14 | use Doctrine\Tests\OrmFunctionalTestCase; |
16 | 15 |
@@ -146,6 +146,12 @@ discard block |
||
146 | 146 | return [$user1, $user2, $user3]; |
147 | 147 | } |
148 | 148 | |
149 | + /** |
|
150 | + * @param string $name |
|
151 | + * @param string $username |
|
152 | + * @param string $status |
|
153 | + * @param CmsAddress $address |
|
154 | + */ |
|
149 | 155 | public function buildUser($name, $username, $status, $address) |
150 | 156 | { |
151 | 157 | $user = new CmsUser(); |
@@ -160,6 +166,12 @@ discard block |
||
160 | 166 | return $user; |
161 | 167 | } |
162 | 168 | |
169 | + /** |
|
170 | + * @param string $country |
|
171 | + * @param string $city |
|
172 | + * @param string $street |
|
173 | + * @param string $zip |
|
174 | + */ |
|
163 | 175 | public function buildAddress($country, $city, $street, $zip) |
164 | 176 | { |
165 | 177 | $address = new CmsAddress(); |
@@ -3,14 +3,13 @@ |
||
3 | 3 | namespace Doctrine\Tests\ORM\Functional; |
4 | 4 | |
5 | 5 | use Doctrine\Common\Collections\ArrayCollection; |
6 | - |
|
7 | 6 | use Doctrine\ORM\NonUniqueResultException; |
8 | 7 | use Doctrine\ORM\Proxy\Proxy; |
9 | 8 | use Doctrine\ORM\Query\QueryException; |
10 | 9 | use Doctrine\ORM\UnexpectedResultException; |
11 | -use Doctrine\Tests\Models\CMS\CmsUser, |
|
12 | - Doctrine\Tests\Models\CMS\CmsArticle, |
|
13 | - Doctrine\Tests\Models\CMS\CmsPhonenumber; |
|
10 | +use Doctrine\Tests\Models\CMS\CmsUser; |
|
11 | +use Doctrine\Tests\Models\CMS\CmsArticle; |
|
12 | +use Doctrine\Tests\Models\CMS\CmsPhonenumber; |
|
14 | 13 | use Doctrine\ORM\Mapping\ClassMetadata; |
15 | 14 | use Doctrine\ORM\Query; |
16 | 15 | use Doctrine\ORM\Query\Parameter; |
@@ -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; |