@@ -50,6 +50,9 @@ discard block |
||
50 | 50 | ->will($this->returnValue($this->metadata)); |
51 | 51 | } |
52 | 52 | |
53 | + /** |
|
54 | + * @param string $genericFieldType |
|
55 | + */ |
|
53 | 56 | public function configureObjectManagerForSimpleEntityWithGenericField($genericFieldType) |
54 | 57 | { |
55 | 58 | $refl = new ReflectionClass('DoctrineModuleTest\Stdlib\Hydrator\Asset\SimpleEntityWithGenericField'); |
@@ -78,6 +81,10 @@ discard block |
||
78 | 81 | ->with($this->logicalOr($this->equalTo('id'), $this->equalTo('genericField'))) |
79 | 82 | ->will( |
80 | 83 | $this->returnCallback( |
84 | + |
|
85 | + /** |
|
86 | + * @param string $arg |
|
87 | + */ |
|
81 | 88 | function ($arg) use ($genericFieldType) { |
82 | 89 | if ('id' === $arg) { |
83 | 90 | return 'integer'; |
@@ -2,16 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace DoctrineModuleTest\Stdlib\Hydrator; |
4 | 4 | |
5 | -use Datetime; |
|
6 | -use DoctrineModuleTest\Stdlib\Hydrator\Asset\ContextStrategy; |
|
7 | 5 | use PHPUnit\Framework\TestCase as BaseTestCase; |
8 | 6 | use ReflectionClass; |
9 | -use Doctrine\Common\Collections\ArrayCollection; |
|
10 | 7 | use DoctrineModule\Stdlib\Hydrator\DoctrineObject as DoctrineObjectHydrator; |
11 | -use DoctrineModule\Stdlib\Hydrator\Strategy; |
|
12 | -use DoctrineModule\Stdlib\Hydrator\Filter; |
|
13 | -use DoctrineModuleTest\Stdlib\Hydrator\Asset\NamingStrategyEntity; |
|
14 | -use Zend\Hydrator\NamingStrategy\UnderscoreNamingStrategy; |
|
15 | 8 | |
16 | 9 | class DoctrineObjectTypeConversionsTest extends BaseTestCase |
17 | 10 | { |