@@ -46,6 +46,9 @@ |
||
46 | 46 | return $this->logger; |
47 | 47 | } |
48 | 48 | |
49 | + /** |
|
50 | + * @return string |
|
51 | + */ |
|
49 | 52 | public function getTestDatabase() |
50 | 53 | { |
51 | 54 | return TestUtil::getTestDatabase(); |
@@ -8,7 +8,6 @@ |
||
8 | 8 | use Doctrine\ODM\CouchDB\Configuration; |
9 | 9 | use Doctrine\ODM\CouchDB\Mapping\Driver\AnnotationDriver; |
10 | 10 | use Doctrine\Common\Cache\ArrayCache; |
11 | -use Doctrine\Common\Annotations\AnnotationReader; |
|
12 | 11 | |
13 | 12 | abstract class CouchDBFunctionalTestCase extends \PHPUnit_Framework_TestCase |
14 | 13 | { |
@@ -41,6 +41,9 @@ |
||
41 | 41 | }); |
42 | 42 | } |
43 | 43 | |
44 | + /** |
|
45 | + * @param \Closure $closure |
|
46 | + */ |
|
44 | 47 | public function wrapRemove($closure) |
45 | 48 | { |
46 | 49 | $group1 = new \Doctrine\Tests\Models\CMS\CmsGroup(); |
@@ -3,7 +3,6 @@ |
||
3 | 3 | |
4 | 4 | use Doctrine\Tests\Models\Embedded\Embedded; |
5 | 5 | use Doctrine\Tests\Models\Embedded\Embedder; |
6 | -use Doctrine\Tests\Models\Embedded\Nested; |
|
7 | 6 | |
8 | 7 | class EmbedManyTest extends \Doctrine\Tests\ODM\CouchDB\CouchDBFunctionalTestCase |
9 | 8 | { |
@@ -65,6 +65,9 @@ |
||
65 | 65 | return new \Doctrine\ODM\CouchDB\Mapping\Driver\AnnotationDriver($reader); |
66 | 66 | } |
67 | 67 | |
68 | + /** |
|
69 | + * @param string $entityClassName |
|
70 | + */ |
|
68 | 71 | protected function ensureIsLoaded($entityClassName) |
69 | 72 | { |
70 | 73 | new $entityClassName; |
@@ -8,12 +8,7 @@ |
||
8 | 8 | use Doctrine\ODM\CouchDB\UnitOfWork; |
9 | 9 | use Doctrine\ODM\CouchDB\Mapping\ClassMetadata; |
10 | 10 | use Doctrine\ODM\CouchDB\Mapping\ClassMetadataFactory; |
11 | - |
|
12 | -use Doctrine\Tests\Models\ECommerce\ECommerceCart; |
|
13 | -use Doctrine\Tests\Models\ECommerce\ECommerceCustomer; |
|
14 | 11 | use Doctrine\Tests\Models\ECommerce\ECommerceFeature; |
15 | -use Doctrine\Tests\Models\ECommerce\ECommerceProduct; |
|
16 | -use Doctrine\Tests\Models\ECommerce\ECommerceShipping; |
|
17 | 12 | |
18 | 13 | /** |
19 | 14 | * Test the proxy factory. |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Doctrine\ODM\CouchDB\UnitOfWork; |
6 | 6 | use Doctrine\ODM\CouchDB\Mapping\ClassMetadata; |
7 | 7 | use Doctrine\ODM\CouchDB\Id\idGenerator; |
8 | - |
|
9 | 8 | use Doctrine\Common\Persistence\Mapping\RuntimeReflectionService; |
10 | 9 | |
11 | 10 | class UnitOfWorkTest extends CouchDBTestCase |
@@ -18,7 +18,7 @@ |
||
18 | 18 | } |
19 | 19 | |
20 | 20 | /** |
21 | - * @return NativeQuery |
|
21 | + * @return Query |
|
22 | 22 | */ |
23 | 23 | protected function createDoctrineViewQuery() |
24 | 24 | { |
@@ -2,10 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Doctrine\Tests\ODM\CouchDB\View; |
4 | 4 | |
5 | -use Doctrine\CouchDB\HTTP\SocketClient; |
|
6 | 5 | use Doctrine\CouchDB\View\Query; |
7 | 6 | use Doctrine\ODM\CouchDB\View\DoctrineAssociations; |
8 | -use Doctrine\ODM\CouchDB\Mapping\ClassMetadata; |
|
9 | 7 | use Doctrine\Tests\ODM\CouchDB\CouchDBFunctionalTestCase; |
10 | 8 | |
11 | 9 | class DoctrineAssociationsTest extends CouchDBFunctionalTestCase |
@@ -19,14 +19,11 @@ |
||
19 | 19 | |
20 | 20 | namespace Doctrine\ODM\CouchDB\Mapping\Driver; |
21 | 21 | |
22 | -use Doctrine\Common\Annotations\AnnotationReader, |
|
23 | - Doctrine\Common\Annotations\AnnotationRegistry, |
|
24 | - Doctrine\Common\Annotations\Reader, |
|
25 | - Doctrine\Common\Persistence\Mapping\ClassMetadata, |
|
26 | - Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver as AbstractAnnotationDriver, |
|
27 | - Doctrine\ODM\CouchDB\Mapping\Annotations as ODM, |
|
28 | - Doctrine\ODM\CouchDB\Mapping\MappingException, |
|
29 | - Doctrine\ODM\CouchDB\Event; |
|
22 | +use Doctrine\Common\Persistence\Mapping\ClassMetadata; |
|
23 | +use Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver as AbstractAnnotationDriver; |
|
24 | +use Doctrine\ODM\CouchDB\Mapping\Annotations as ODM; |
|
25 | +use Doctrine\ODM\CouchDB\Mapping\MappingException; |
|
26 | +use Doctrine\ODM\CouchDB\Event; |
|
30 | 27 | |
31 | 28 | /** |
32 | 29 | * The AnnotationDriver reads the mapping metadata from docblock annotations. |
@@ -19,10 +19,10 @@ |
||
19 | 19 | |
20 | 20 | namespace Doctrine\ODM\CouchDB\Tools\Console\Command; |
21 | 21 | |
22 | -use Symfony\Component\Console\Input\InputArgument, |
|
23 | - Symfony\Component\Console\Input\InputOption, |
|
24 | - Symfony\Component\Console, |
|
25 | - Doctrine\ODM\CouchDB\Tools\Console\MetadataFilter; |
|
22 | +use Symfony\Component\Console\Input\InputArgument; |
|
23 | +use Symfony\Component\Console\Input\InputOption; |
|
24 | +use Symfony\Component\Console; |
|
25 | +use Doctrine\ODM\CouchDB\Tools\Console\MetadataFilter; |
|
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Command to (re)generate the proxy classes used by doctrine. |