Test Failed
Pull Request — develop (#6854)
by
unknown
61:16
created
Tests/ORM/Tools/Console/Command/ClearCacheQueryRegionCommandTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Tools\Console\Command;
6 6
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             ], ['decorated' => false]
55 55
         );
56 56
 
57
-        self::assertEquals('Clearing all second-level cache query regions' . PHP_EOL, $tester->getDisplay());
57
+        self::assertEquals('Clearing all second-level cache query regions'.PHP_EOL, $tester->getDisplay());
58 58
     }
59 59
 
60 60
     public function testClearDefaultRegionName()
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             ], ['decorated' => false]
69 69
         );
70 70
 
71
-        self::assertEquals('Clearing second-level cache query region named "query_cache_region"' . PHP_EOL, $tester->getDisplay());
71
+        self::assertEquals('Clearing second-level cache query region named "query_cache_region"'.PHP_EOL, $tester->getDisplay());
72 72
     }
73 73
 
74 74
     public function testClearByRegionName()
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             ], ['decorated' => false]
83 83
         );
84 84
 
85
-        self::assertEquals('Clearing second-level cache query region named "my_region"' . PHP_EOL, $tester->getDisplay());
85
+        self::assertEquals('Clearing second-level cache query region named "my_region"'.PHP_EOL, $tester->getDisplay());
86 86
     }
87 87
 
88 88
     public function testFlushRegionName()
@@ -97,6 +97,6 @@  discard block
 block discarded – undo
97 97
             ], ['decorated' => false]
98 98
         );
99 99
 
100
-        self::assertEquals('Flushing cache provider configured for second-level cache query region named "my_region"' . PHP_EOL, $tester->getDisplay());
100
+        self::assertEquals('Flushing cache provider configured for second-level cache query region named "my_region"'.PHP_EOL, $tester->getDisplay());
101 101
     }
102 102
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/Console/Command/RunDqlCommandTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Tools\Console\Command;
6 6
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             $this->tester->execute(
70 70
                 [
71 71
                 'command' => $this->command->getName(),
72
-                'dql'     => 'SELECT e FROM ' . DateTimeModel::class . ' e',
72
+                'dql'     => 'SELECT e FROM '.DateTimeModel::class.' e',
73 73
                 ]
74 74
             )
75 75
         );
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             $this->tester->execute(
88 88
                 [
89 89
                 'command'    => $this->command->getName(),
90
-                'dql'        => 'SELECT e FROM ' . DateTimeModel::class . ' e',
90
+                'dql'        => 'SELECT e FROM '.DateTimeModel::class.' e',
91 91
                 '--show-sql' => 'true'
92 92
                 ]
93 93
             )
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/Export/XmlClassMetadataExporterTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Tools\Export;
6 6
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function testFieldsAreProperlySerialized()
33 33
     {
34
-        $xml  = simplexml_load_file(__DIR__ . '/export/xml/Doctrine.Tests.ORM.Tools.Export.ExportedUser.dcm.xml');
34
+        $xml = simplexml_load_file(__DIR__.'/export/xml/Doctrine.Tests.ORM.Tools.Export.ExportedUser.dcm.xml');
35 35
 
36 36
         $xml->registerXPathNamespace("d", "http://doctrine-project.org/schemas/orm/doctrine-mapping");
37 37
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/Pagination/PaginationTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Tools\Pagination;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/Pagination/WhereInWalkerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Tools\Pagination;
6 6
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     public function testWhereInQueryWithArbitraryJoin_NoWhere()
139 139
     {
140
-        $whereInQuery  = $this->entityManager->createQuery(
140
+        $whereInQuery = $this->entityManager->createQuery(
141 141
             'SELECT p FROM Doctrine\Tests\ORM\Tools\Pagination\BlogPost p JOIN Doctrine\Tests\ORM\Tools\Pagination\Category c WITH p.category = c'
142 142
         );
143 143
         $whereInQuery->setHint(Query::HINT_CUSTOM_TREE_WALKERS, [WhereInWalker::class]);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Cache/DefaultCacheFactoryTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Cache;
6 6
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     {
179 179
         $em         = $this->em;
180 180
         $metadata   = clone $em->getClassMetadata(State::class);
181
-        $association    = $metadata->getProperty('cities');
181
+        $association = $metadata->getProperty('cities');
182 182
         $persister  = new OneToManyPersister($em);
183 183
         $region     = new ConcurrentRegionMock(
184 184
             new DefaultRegion('regionName', $this->getSharedSecondLevelCacheDriverImpl())
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
     {
306 306
         $factory = new DefaultCacheFactory($this->regionsConfig, $this->getSharedSecondLevelCacheDriverImpl());
307 307
 
308
-        $fooCache  = new CacheMetadata(CacheUsage::READ_WRITE, 'foo');
308
+        $fooCache = new CacheMetadata(CacheUsage::READ_WRITE, 'foo');
309 309
 
310 310
         $factory->getRegion($fooCache);
311 311
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Cache/CacheLoggerChainTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Cache;
6 6
 
Please login to merge, or discard this patch.
Tests/ORM/Cache/Persister/Entity/ReadWriteCachedEntityPersisterTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Cache\Persister\Entity;
6 6
 
Please login to merge, or discard this patch.
Doctrine/Tests/ORM/Cache/Persister/Entity/AbstractEntityPersisterTest.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,8 +106,8 @@
 block discarded – undo
106 106
         $this->em               = $this->getTestEntityManager();
107 107
         $this->region           = $this->createRegion();
108 108
         $this->entityPersister  = $this->getMockBuilder(EntityPersister::class)
109
-                                       ->setMethods($this->entityPersisterMockMethods)
110
-                                       ->getMock();
109
+                                        ->setMethods($this->entityPersisterMockMethods)
110
+                                        ->getMock();
111 111
     }
112 112
 
113 113
     /**
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Cache\Persister\Entity;
6 6
 
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
             ->with($this->equalTo($assoc), $this->equalTo('Foo'), $this->equalTo(1), $this->equalTo(2))
371 371
             ->will($this->returnValue([$entity]));
372 372
 
373
-        self::assertEquals([$entity], $persister->getManyToManyCollection($assoc, 'Foo', 1 ,2));
373
+        self::assertEquals([$entity], $persister->getManyToManyCollection($assoc, 'Foo', 1, 2));
374 374
     }
375 375
 
376 376
     public function testInvokeGetOneToManyCollection()
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
             ->with($this->equalTo($assoc), $this->equalTo('Foo'), $this->equalTo(1), $this->equalTo(2))
385 385
             ->will($this->returnValue([$entity]));
386 386
 
387
-        self::assertEquals([$entity], $persister->getOneToManyCollection($assoc, 'Foo', 1 ,2));
387
+        self::assertEquals([$entity], $persister->getOneToManyCollection($assoc, 'Foo', 1, 2));
388 388
     }
389 389
 
390 390
     public function testInvokeLoadManyToManyCollection()
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     }
46 46
 
47 47
     /**
48
-     * @return \Doctrine\ORM\Cache\Region
48
+     * @return \PHPUnit\Framework\MockObject\MockObject
49 49
      */
50 50
     protected function createRegion()
51 51
     {
Please login to merge, or discard this patch.