@@ -34,7 +34,7 @@ |
||
| 34 | 34 | public function testGetParentClasses() |
| 35 | 35 | { |
| 36 | 36 | $classes = $this->reflectionService->getParentClasses(self::class); |
| 37 | - self::assertTrue(count($classes) === 0, 'The test class ' . self::class . ' should have no parents according to static reflection.'); |
|
| 37 | + self::assertTrue(count($classes) === 0, 'The test class '.self::class.' should have no parents according to static reflection.'); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | public function testGetReflectionClass() |
@@ -38,13 +38,13 @@ |
||
| 38 | 38 | public function testGetParentClasses() |
| 39 | 39 | { |
| 40 | 40 | $classes = $this->reflectionService->getParentClasses(self::class); |
| 41 | - self::assertTrue(count($classes) >= 1, 'The test class ' . self::class . ' should have at least one parent.'); |
|
| 41 | + self::assertTrue(count($classes) >= 1, 'The test class '.self::class.' should have at least one parent.'); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | public function testGetParentClassesForAbsentClass() |
| 45 | 45 | { |
| 46 | 46 | $this->expectException(MappingException::class); |
| 47 | - $this->reflectionService->getParentClasses(__NAMESPACE__ . '\AbsentClass'); |
|
| 47 | + $this->reflectionService->getParentClasses(__NAMESPACE__.'\AbsentClass'); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | public function testGetReflectionClass() |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | public function testGetMetadataForAbsentClass() |
| 48 | 48 | { |
| 49 | 49 | $this->expectException(MappingException::class); |
| 50 | - $this->cmf->getMetadataFor(__NAMESPACE__ . '\AbsentClass'); |
|
| 50 | + $this->cmf->getMetadataFor(__NAMESPACE__.'\AbsentClass'); |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | public function testGetParentMetadata() |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | { |
| 64 | 64 | $metadata = $this->createMock(ClassMetadata::class); |
| 65 | 65 | $cache = new ArrayCache(); |
| 66 | - $cache->save(ChildEntity::class . '$CLASSMETADATA', $metadata); |
|
| 66 | + $cache->save(ChildEntity::class.'$CLASSMETADATA', $metadata); |
|
| 67 | 67 | |
| 68 | 68 | $this->cmf->setCacheDriver($cache); |
| 69 | 69 | |
@@ -77,14 +77,14 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | $loadedMetadata = $this->cmf->getMetadataFor(ChildEntity::class); |
| 79 | 79 | |
| 80 | - self::assertSame($loadedMetadata, $cache->fetch(ChildEntity::class . '$CLASSMETADATA')); |
|
| 80 | + self::assertSame($loadedMetadata, $cache->fetch(ChildEntity::class.'$CLASSMETADATA')); |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | public function testGetAliasedMetadata() |
| 84 | 84 | { |
| 85 | 85 | $this->cmf->getMetadataFor('prefix:ChildEntity'); |
| 86 | 86 | |
| 87 | - self::assertTrue($this->cmf->hasMetadataFor(__NAMESPACE__ . '\ChildEntity')); |
|
| 87 | + self::assertTrue($this->cmf->hasMetadataFor(__NAMESPACE__.'\ChildEntity')); |
|
| 88 | 88 | self::assertTrue($this->cmf->hasMetadataFor('prefix:ChildEntity')); |
| 89 | 89 | } |
| 90 | 90 | |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | { |
| 114 | 114 | $classMetadata = $this->createMock(ClassMetadata::class); |
| 115 | 115 | |
| 116 | - $this->cmf->fallbackCallback = static function () use ($classMetadata) { |
|
| 116 | + $this->cmf->fallbackCallback = static function() use ($classMetadata) { |
|
| 117 | 117 | return $classMetadata; |
| 118 | 118 | }; |
| 119 | 119 | |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | public function testWillFailOnFallbackFailureWithNotLoadedMetadata() |
| 126 | 126 | { |
| 127 | - $this->cmf->fallbackCallback = static function () { |
|
| 127 | + $this->cmf->fallbackCallback = static function() { |
|
| 128 | 128 | return null; |
| 129 | 129 | }; |
| 130 | 130 | |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | |
| 188 | 188 | protected function getFqcnFromAlias($namespaceAlias, $simpleClassName) |
| 189 | 189 | { |
| 190 | - return __NAMESPACE__ . '\\' . $simpleClassName; |
|
| 190 | + return __NAMESPACE__.'\\'.$simpleClassName; |
|
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | protected function initialize() |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | |
| 219 | 219 | protected function onNotFoundMetadata($className) |
| 220 | 220 | { |
| 221 | - if (! $this->fallbackCallback) { |
|
| 221 | + if (!$this->fallbackCallback) { |
|
| 222 | 222 | return null; |
| 223 | 223 | } |
| 224 | 224 | |
@@ -16,12 +16,12 @@ |
||
| 16 | 16 | error_reporting(E_ALL | E_STRICT); |
| 17 | 17 | |
| 18 | 18 | // register silently failing autoloader |
| 19 | -spl_autoload_register(static function ($class) { |
|
| 19 | +spl_autoload_register(static function($class) { |
|
| 20 | 20 | if (strpos($class, 'Doctrine\Tests\\') !== 0) { |
| 21 | 21 | return; |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - $path = __DIR__ . '/../../' . strtr($class, '\\', '/') . '.php'; |
|
| 24 | + $path = __DIR__.'/../../'.strtr($class, '\\', '/').'.php'; |
|
| 25 | 25 | if (is_file($path) && is_readable($path)) { |
| 26 | 26 | require_once $path; |
| 27 | 27 | |