|
10 | 10 | use Symfony\Component\DependencyInjection\ServiceLocator; |
11 | 11 | use Tests\Torr\SimpleNormalizer\Fixture\DummyVO; |
12 | 12 | use Tests\Torr\SimpleNormalizer\Fixture\DummyVONormalizer; |
13 | | -use Torr\SimpleNormalizer\Exception\InvalidMaxDepthException; |
14 | 13 | use Torr\SimpleNormalizer\Exception\IncompleteNormalizationException; |
| 14 | +use Torr\SimpleNormalizer\Exception\InvalidMaxDepthException; |
15 | 15 | use Torr\SimpleNormalizer\Exception\UnsupportedTypeException; |
16 | 16 | use Torr\SimpleNormalizer\Normalizer\SimpleNormalizer; |
17 | 17 | use Torr\SimpleNormalizer\Normalizer\Validator\ValidJsonVerifier; |
@@ -180,7 +180,7 @@ public function testWithEntityManagerButNoMapping () : void |
180 | 180 | ->with(DummyVO::class) |
181 | 181 | ->willReturn(false); |
182 | 182 |
|
183 | | - $entityManager = $this->createStub(EntityManagerInterface::class); |
| 183 | + $entityManager = self::createStub(EntityManagerInterface::class); |
184 | 184 | $entityManager->method("getMetadataFactory")->willReturn($metadataFactory); |
185 | 185 |
|
186 | 186 | $locator = $this->createMock(ServiceLocator::class); |
@@ -219,7 +219,7 @@ public function testWithEntityManagerWithMapping () : void |
219 | 219 | ->with(DummyVO::class) |
220 | 220 | ->willReturn($classMetaData); |
221 | 221 |
|
222 | | - $entityManager = $this->createStub(EntityManagerInterface::class); |
| 222 | + $entityManager = self::createStub(EntityManagerInterface::class); |
223 | 223 | $entityManager->method("getMetadataFactory")->willReturn($metadataFactory); |
224 | 224 |
|
225 | 225 | $locator = $this->createMock(ServiceLocator::class); |
@@ -258,7 +258,7 @@ public function testWithEntityManagerCachesNormalizedClassName () : void |
258 | 258 | ->with(DummyVO::class) |
259 | 259 | ->willReturn($classMetaData); |
260 | 260 |
|
261 | | - $entityManager = $this->createStub(EntityManagerInterface::class); |
| 261 | + $entityManager = self::createStub(EntityManagerInterface::class); |
262 | 262 | $entityManager->method("getMetadataFactory")->willReturn($metadataFactory); |
263 | 263 |
|
264 | 264 | $locator = $this->createMock(ServiceLocator::class); |
@@ -293,7 +293,7 @@ public function testWithEntityManagerCachesUnmappedClassName () : void |
293 | 293 | ->expects(self::never()) |
294 | 294 | ->method("getMetadataFor"); |
295 | 295 |
|
296 | | - $entityManager = $this->createStub(EntityManagerInterface::class); |
| 296 | + $entityManager = self::createStub(EntityManagerInterface::class); |
297 | 297 | $entityManager->method("getMetadataFactory")->willReturn($metadataFactory); |
298 | 298 |
|
299 | 299 | $locator = $this->createMock(ServiceLocator::class); |
|
0 commit comments