Failed Conditions
Pull Request — master (#2)
by Jonathan
03:29
created
tests/Doctrine/Tests/Common/Persistence/Mapping/FileDriverTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         $locator->expects($this->once())
39 39
             ->method('findMappingFile')
40 40
             ->with($this->equalTo('stdClass'))
41
-            ->will($this->returnValue(__DIR__ . '/_files/stdClass.yml'));
41
+            ->will($this->returnValue(__DIR__.'/_files/stdClass.yml'));
42 42
 
43 43
         $driver = new TestFileDriver($locator);
44 44
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $locator->expects($this->once())
54 54
             ->method('findMappingFile')
55 55
             ->with($this->equalTo('stdClass'))
56
-            ->will($this->returnValue(__DIR__ . '/_files/stdClass.yml'));
56
+            ->will($this->returnValue(__DIR__.'/_files/stdClass.yml'));
57 57
 
58 58
         $driver = new TestFileDriver($locator);
59 59
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 
137 137
     public function testNonLocatorFallback() : void
138 138
     {
139
-        $driver = new TestFileDriver(__DIR__ . '/_files', '.yml');
139
+        $driver = new TestFileDriver(__DIR__.'/_files', '.yml');
140 140
         self::assertTrue($driver->isTransient('stdClass2'));
141 141
         self::assertFalse($driver->isTransient('stdClass'));
142 142
     }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     {
146 146
         $locator = $this->createMock(FileLocator::class);
147 147
         $locator->expects($this->any())->method('getFileExtension')->will($this->returnValue('.yml'));
148
-        $locator->expects($this->any())->method('getPaths')->will($this->returnValue([__DIR__ . '/_files']));
148
+        $locator->expects($this->any())->method('getPaths')->will($this->returnValue([__DIR__.'/_files']));
149 149
 
150 150
         return $locator;
151 151
     }
Please login to merge, or discard this patch.
Doctrine/Tests/Common/Persistence/Mapping/RuntimeReflectionServiceTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,13 +39,13 @@
 block discarded – undo
39 39
     public function testGetParentClasses() : void
40 40
     {
41 41
         $classes = $this->reflectionService->getParentClasses(__CLASS__);
42
-        self::assertTrue(count($classes) >= 1, 'The test class ' . __CLASS__ . ' should have at least one parent.');
42
+        self::assertTrue(count($classes) >= 1, 'The test class '.__CLASS__.' should have at least one parent.');
43 43
     }
44 44
 
45 45
     public function testGetParentClassesForAbsentClass() : void
46 46
     {
47 47
         $this->expectException(MappingException::class);
48
-        $this->reflectionService->getParentClasses(__NAMESPACE__ . '\AbsentClass');
48
+        $this->reflectionService->getParentClasses(__NAMESPACE__.'\AbsentClass');
49 49
     }
50 50
 
51 51
     public function testGetReflectionClass() : void
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Common/Persistence/Mapping/AnnotationDriverTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     public function testGetAllClassNames() : void
17 17
     {
18 18
         $reader = new AnnotationReader();
19
-        $driver = new SimpleAnnotationDriver($reader, [__DIR__ . '/_files/annotation']);
19
+        $driver = new SimpleAnnotationDriver($reader, [__DIR__.'/_files/annotation']);
20 20
 
21 21
         $classes = $driver->getAllClassNames();
22 22
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Common/Persistence/PersistentObjectTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $this->cm = new TestObjectMetadata();
36 36
         $this->om = $this->createMock(ObjectManager::class);
37 37
         $this->om->expects($this->any())->method('getClassMetadata')
38
-                 ->will($this->returnValue($this->cm));
38
+                    ->will($this->returnValue($this->cm));
39 39
         $this->object = new TestObject();
40 40
         PersistentObject::setObjectManager($this->om);
41 41
         $this->object->injectObjectManager($this->om, $this->cm);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 
198 198
     public function getAssociationTargetClass(string $assocName) : string
199 199
     {
200
-        return __NAMESPACE__ . '\TestObject';
200
+        return __NAMESPACE__.'\TestObject';
201 201
     }
202 202
 
203 203
     /**
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 
219 219
     public function getName() : string
220 220
     {
221
-        return __NAMESPACE__ . '\TestObject';
221
+        return __NAMESPACE__.'\TestObject';
222 222
     }
223 223
 
224 224
     public function getReflectionClass() : ReflectionClass
Please login to merge, or discard this patch.
tests/Doctrine/Tests/Common/Util/ClassUtilsTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
             return [
19 19
                 [\stdClass::class, \stdClass::class],
20 20
                 [ClassUtils::class, ClassUtils::class],
21
-                [ 'MyProject\Proxies\__CG__\stdClass', \stdClass::class],
22
-                [ 'MyProject\Proxies\__CG__\OtherProject\Proxies\__CG__\stdClass', \stdClass::class],
23
-                [ 'MyProject\Proxies\__CG__\Doctrine\Tests\Common\Util\ChildObject', ChildObject::class],
21
+                ['MyProject\Proxies\__CG__\stdClass', \stdClass::class],
22
+                ['MyProject\Proxies\__CG__\OtherProject\Proxies\__CG__\stdClass', \stdClass::class],
23
+                ['MyProject\Proxies\__CG__\Doctrine\Tests\Common\Util\ChildObject', ChildObject::class],
24 24
             ];
25 25
         }
26 26
 
Please login to merge, or discard this patch.