@@ -13,14 +13,11 @@ |
||
13 | 13 | use PHPUnit\Framework\TestCase; |
14 | 14 | use Addiks\RDMBundle\Hydration\EntityHydrator; |
15 | 15 | use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface; |
16 | -use Addiks\RDMBundle\Mapping\Annotation\Service; |
|
17 | 16 | use Addiks\RDMBundle\Tests\Hydration\ServiceExample; |
18 | 17 | use Addiks\RDMBundle\Tests\Hydration\EntityExample; |
19 | -use ErrorException; |
|
20 | 18 | use Addiks\RDMBundle\Mapping\ServiceMapping; |
21 | 19 | use Addiks\RDMBundle\Mapping\EntityMapping; |
22 | 20 | use Addiks\RDMBundle\ValueResolver\ValueResolverInterface; |
23 | -use Addiks\RDMBundle\Exception\FailedRDMAssertionExceptionInterface; |
|
24 | 21 | use Addiks\RDMBundle\DataLoader\DataLoaderInterface; |
25 | 22 | use Doctrine\ORM\EntityManagerInterface; |
26 | 23 |
@@ -44,7 +44,6 @@ |
||
44 | 44 | use Addiks\RDMBundle\Tests\Hydration\ServiceExample; |
45 | 45 | use Addiks\RDMBundle\Mapping\Annotation\Service; |
46 | 46 | use Addiks\RDMBundle\Exception\FailedRDMAssertionExceptionInterface; |
47 | -use Doctrine\ORM\Event\OnFlushEventArgs; |
|
48 | 47 | use Doctrine\ORM\UnitOfWork; |
49 | 48 | use Doctrine\DBAL\Connection; |
50 | 49 | use Doctrine\DBAL\Statement; |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | |
124 | 124 | $this->loader = new XmlFileLoader( |
125 | 125 | $this->container, |
126 | - new FileLocator(__DIR__ . '/../Resources/config') |
|
126 | + new FileLocator(__DIR__.'/../Resources/config') |
|
127 | 127 | ); |
128 | 128 | } |
129 | 129 | |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | private function configureMockedAnnotationReader(AnnotationReader $annotationReader, array $annotationMap) |
495 | 495 | { |
496 | 496 | $annotationReader->method('getClassAnnotations')->will($this->returnCallback( |
497 | - function (ReflectionClass $reflectionClass) { |
|
497 | + function(ReflectionClass $reflectionClass) { |
|
498 | 498 | if ($reflectionClass->getName() === EntityExample::class) { |
499 | 499 | return [new Entity()]; |
500 | 500 | } |
@@ -502,7 +502,7 @@ discard block |
||
502 | 502 | )); |
503 | 503 | |
504 | 504 | $annotationReader->method('getPropertyAnnotation')->will($this->returnCallback( |
505 | - function (ReflectionProperty $reflectionProperty, string $annotationName) use ($annotationMap) { |
|
505 | + function(ReflectionProperty $reflectionProperty, string $annotationName) use ($annotationMap) { |
|
506 | 506 | /** @var ReflectionClass $reflectionClass */ |
507 | 507 | $reflectionClass = $reflectionProperty->getDeclaringClass(); |
508 | 508 | |
@@ -519,7 +519,7 @@ discard block |
||
519 | 519 | )); |
520 | 520 | |
521 | 521 | $annotationReader->method('getPropertyAnnotations')->will($this->returnCallback( |
522 | - function (ReflectionProperty $reflectionProperty) use ($annotationMap) { |
|
522 | + function(ReflectionProperty $reflectionProperty) use ($annotationMap) { |
|
523 | 523 | /** @var ReflectionClass $reflectionClass */ |
524 | 524 | $reflectionClass = $reflectionProperty->getDeclaringClass(); |
525 | 525 |
@@ -11,8 +11,6 @@ |
||
11 | 11 | namespace Addiks\RDMBundle\Tests\Mapping\DriverFactories; |
12 | 12 | |
13 | 13 | use PHPUnit\Framework\TestCase; |
14 | -use Addiks\RDMBundle\Mapping\DriverFactories\MappingDriverFactoryInterface; |
|
15 | -use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface; |
|
16 | 14 | use Addiks\RDMBundle\Mapping\DriverFactories\MappingAnnotationDriverFactory; |
17 | 15 | use Addiks\RDMBundle\Mapping\Drivers\MappingAnnotationDriver; |
18 | 16 | use Doctrine\ORM\Mapping\Driver\AnnotationDriver; |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Addiks\RDMBundle\Mapping\DriverFactories\MappingDriverFactoryInterface; |
15 | 15 | use Doctrine\Common\Persistence\Mapping\Driver\MappingDriver; |
16 | 16 | use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface; |
17 | -use Addiks\RDMBundle\Tests\Hydration\EntityExample; |
|
18 | 17 | use Addiks\RDMBundle\Mapping\DriverFactories\MappingDriverFactoryAggregate; |
19 | 18 | |
20 | 19 | final class MappingDriverFactoryAggregateTest extends TestCase |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Addiks\RDMBundle\Mapping\DriverFactories\MappingDriverFactoryInterface; |
15 | 15 | use Doctrine\Common\Persistence\Mapping\Driver\MappingDriver; |
16 | 16 | use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface; |
17 | -use Addiks\RDMBundle\Tests\Hydration\EntityExample; |
|
18 | 17 | use Addiks\RDMBundle\Mapping\DriverFactories\MappingDriverFactoryLazyLoadProxy; |
19 | 18 | use Symfony\Component\DependencyInjection\ContainerInterface; |
20 | 19 |
@@ -11,8 +11,6 @@ |
||
11 | 11 | namespace Addiks\RDMBundle\Tests\Mapping\DriverFactories; |
12 | 12 | |
13 | 13 | use PHPUnit\Framework\TestCase; |
14 | -use Addiks\RDMBundle\Mapping\DriverFactories\MappingDriverFactoryInterface; |
|
15 | -use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface; |
|
16 | 14 | use Addiks\RDMBundle\Mapping\DriverFactories\MappingPHPDriverFactory; |
17 | 15 | use Doctrine\ORM\Mapping\Driver\PHPDriver; |
18 | 16 | use Addiks\RDMBundle\Mapping\Drivers\MappingPHPDriver; |
@@ -11,8 +11,6 @@ |
||
11 | 11 | namespace Addiks\RDMBundle\Tests\Mapping\DriverFactories; |
12 | 12 | |
13 | 13 | use PHPUnit\Framework\TestCase; |
14 | -use Addiks\RDMBundle\Mapping\DriverFactories\MappingDriverFactoryInterface; |
|
15 | -use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface; |
|
16 | 14 | use Addiks\RDMBundle\Mapping\DriverFactories\MappingXMLDriverFactory; |
17 | 15 | use Addiks\RDMBundle\Mapping\Drivers\MappingXmlDriver; |
18 | 16 | use Doctrine\ORM\Mapping\Driver\XmlDriver; |
@@ -11,8 +11,6 @@ |
||
11 | 11 | namespace Addiks\RDMBundle\Tests\Mapping\DriverFactories; |
12 | 12 | |
13 | 13 | use PHPUnit\Framework\TestCase; |
14 | -use Addiks\RDMBundle\Mapping\DriverFactories\MappingDriverFactoryInterface; |
|
15 | -use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface; |
|
16 | 14 | use Doctrine\Common\Persistence\Mapping\Driver\FileLocator; |
17 | 15 | use Addiks\RDMBundle\Mapping\DriverFactories\MappingYamlDriverFactory; |
18 | 16 | use Addiks\RDMBundle\Mapping\Drivers\MappingYamlDriver; |
@@ -13,7 +13,6 @@ |
||
13 | 13 | use PHPUnit\Framework\TestCase; |
14 | 14 | use Addiks\RDMBundle\Tests\Hydration\EntityExample; |
15 | 15 | use Addiks\RDMBundle\Mapping\Annotation\Service; |
16 | -use ReflectionProperty; |
|
17 | 16 | use Addiks\RDMBundle\Mapping\Drivers\MappingDriverChain; |
18 | 17 | use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface; |
19 | 18 | use Addiks\RDMBundle\Mapping\EntityMapping; |