@@ -12,8 +12,6 @@ |
||
| 12 | 12 | |
| 13 | 13 | use PHPUnit\Framework\TestCase; |
| 14 | 14 | use Addiks\RDMBundle\Tests\Hydration\EntityExample; |
| 15 | -use Addiks\RDMBundle\Mapping\Annotation\Service; |
|
| 16 | -use ReflectionProperty; |
|
| 17 | 15 | use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface; |
| 18 | 16 | use Addiks\RDMBundle\Mapping\Drivers\MappingPHPDriver; |
| 19 | 17 | use Doctrine\Common\Persistence\Mapping\Driver\FileLocator; |
@@ -12,8 +12,6 @@ |
||
| 12 | 12 | |
| 13 | 13 | use PHPUnit\Framework\TestCase; |
| 14 | 14 | use Addiks\RDMBundle\Tests\Hydration\EntityExample; |
| 15 | -use Addiks\RDMBundle\Mapping\Annotation\Service; |
|
| 16 | -use ReflectionProperty; |
|
| 17 | 15 | use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface; |
| 18 | 16 | use Doctrine\Common\Persistence\Mapping\Driver\FileLocator; |
| 19 | 17 | use Addiks\RDMBundle\Mapping\Drivers\MappingXmlDriver; |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | 'bar' => new ServiceMapping('other_service', false, "in file '{$mappingFilePath}'"), |
| 65 | 65 | 'baz' => new ChoiceMapping('baz_column', [ |
| 66 | 66 | 'lorem' => new ServiceMapping("lorem_service", false, "in file '{$mappingFilePath}'"), |
| 67 | - 'ipsum' => new ServiceMapping("ipsum_service", true, "in file '{$mappingFilePath}'"), |
|
| 67 | + 'ipsum' => new ServiceMapping("ipsum_service", true, "in file '{$mappingFilePath}'"), |
|
| 68 | 68 | ], "in file '{$mappingFilePath}'"), |
| 69 | 69 | 'faz' => new ChoiceMapping(new Column("faz_column", Type::getType('string'), ['notnull' => true]), [ |
| 70 | 70 | 'lorem' => new ServiceMapping("lorem_service", false, "in file '{$mappingFilePath}'"), |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | new CallDefinition("createValueObject", "@value_object.factory", [ |
| 130 | 130 | new ChoiceMapping('baz_column', [ |
| 131 | 131 | 'lorem' => new ServiceMapping("lorem_service", false, "in file '{$mappingFilePath}'"), |
| 132 | - 'ipsum' => new ServiceMapping("ipsum_service", true, "in file '{$mappingFilePath}'"), |
|
| 132 | + 'ipsum' => new ServiceMapping("ipsum_service", true, "in file '{$mappingFilePath}'"), |
|
| 133 | 133 | ], "in file '{$mappingFilePath}'") |
| 134 | 134 | ]) |
| 135 | 135 | ), |
@@ -12,8 +12,6 @@ |
||
| 12 | 12 | |
| 13 | 13 | use PHPUnit\Framework\TestCase; |
| 14 | 14 | use Addiks\RDMBundle\Tests\Hydration\EntityExample; |
| 15 | -use Addiks\RDMBundle\Mapping\Annotation\Service; |
|
| 16 | -use ReflectionProperty; |
|
| 17 | 15 | use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface; |
| 18 | 16 | use Doctrine\Common\Persistence\Mapping\Driver\FileLocator; |
| 19 | 17 | use Addiks\RDMBundle\Mapping\Drivers\MappingYamlDriver; |
@@ -16,7 +16,6 @@ |
||
| 16 | 16 | use Addiks\RDMBundle\Mapping\ChoiceMapping; |
| 17 | 17 | use Addiks\RDMBundle\Tests\Hydration\EntityExample; |
| 18 | 18 | use Addiks\RDMBundle\Mapping\ServiceMapping; |
| 19 | -use Addiks\RDMBundle\Mapping\MappingInterface; |
|
| 20 | 19 | |
| 21 | 20 | final class ChoiceValueResolverTest extends TestCase |
| 22 | 21 | { |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | $choiceMapping, |
| 98 | 98 | $entity, |
| 99 | 99 | [] # <= I'm not sure how this parameter should be handled correctly in the future, |
| 100 | - # but with the current supported features it *should* be irrelevant. |
|
| 100 | + # but with the current supported features it *should* be irrelevant. |
|
| 101 | 101 | ); |
| 102 | 102 | |
| 103 | 103 | if ($choiceValue === $valueFromEntityField) { |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $configuration = new Configuration(); |
| 23 | 23 | $config = $this->processConfiguration($configuration, $configs); |
| 24 | 24 | |
| 25 | - $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 25 | + $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 26 | 26 | $loader->load('services.xml'); |
| 27 | 27 | } |
| 28 | 28 | } |
@@ -13,18 +13,13 @@ |
||
| 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 | -use Addiks\RDMBundle\Mapping\EntityMappingInterface; |
|
| 27 | -use Addiks\RDMBundle\Mapping\MappingInterface; |
|
| 28 | 23 | |
| 29 | 24 | final class EntityHydratorTest extends TestCase |
| 30 | 25 | { |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | - * @param object $entity |
|
| 72 | + * @param \Addiks\RDMBundle\Tests\Hydration\EntityExample $entity |
|
| 73 | 73 | */ |
| 74 | 74 | public function loadDBALDataForEntity($entity, EntityManagerInterface $entityManager): array |
| 75 | 75 | { |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | /** |
| 163 | - * @param object $entity |
|
| 163 | + * @param \Addiks\RDMBundle\Tests\Hydration\EntityExample $entity |
|
| 164 | 164 | */ |
| 165 | 165 | public function storeDBALDataForEntity($entity, EntityManagerInterface $entityManager): void |
| 166 | 166 | { |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | /** |
| 200 | - * @param object $entity |
|
| 200 | + * @param \Addiks\RDMBundle\Tests\Hydration\EntityExample $entity |
|
| 201 | 201 | */ |
| 202 | 202 | public function removeDBALDataForEntity($entity, EntityManagerInterface $entityManager): void |
| 203 | 203 | { |
@@ -23,7 +23,6 @@ |
||
| 23 | 23 | use Doctrine\ORM\Query\Expr; |
| 24 | 24 | use Doctrine\DBAL\Driver\Statement; |
| 25 | 25 | use PHPUnit\Framework\TestCase; |
| 26 | -use Addiks\RDMBundle\Mapping\ServiceMapping; |
|
| 27 | 26 | use Doctrine\ORM\UnitOfWork; |
| 28 | 27 | use Addiks\RDMBundle\Tests\Hydration\ServiceExample; |
| 29 | 28 | |
@@ -219,7 +219,7 @@ |
||
| 219 | 219 | $this->valueResolver->method("revertValue")->will($this->returnValueMap([ |
| 220 | 220 | [$this->mappings['foo'], $entity, "some_ipsum_service", ["foo_column" => "ipsum"]], |
| 221 | 221 | [$this->mappings['bar'], $entity, "some_dolor_service", ["bar_column" => "dolor"]], |
| 222 | - [$this->mappings['faz'], $entity, $fazService, ["faz_column" => "sit"]], |
|
| 222 | + [$this->mappings['faz'], $entity, $fazService, ["faz_column" => "sit"]], |
|
| 223 | 223 | ])); |
| 224 | 224 | |
| 225 | 225 | $this->connection->expects($this->once())->method("update")->with( |