Test Failed
Pull Request — develop (#6596)
by
unknown
62:09
created
tests/Doctrine/Tests/ORM/Tools/SetupTest.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use Doctrine\ORM\Configuration;
10 10
 use Doctrine\ORM\Mapping\Driver\AnnotationDriver;
11 11
 use Doctrine\ORM\Mapping\Driver\XmlDriver;
12
-use Doctrine\ORM\Mapping\Driver\YamlDriver;
13 12
 use Doctrine\ORM\Tools\Setup;
14 13
 use Doctrine\ORM\Version;
15 14
 use Doctrine\Tests\OrmTestCase;
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\Tools;
6 6
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $loaders = spl_autoload_functions();
40 40
         $numberOfLoaders = count($loaders);
41 41
         for ($i = 0; $i < $numberOfLoaders; $i++) {
42
-            if ($i > $this->originalAutoloaderCount+1) {
42
+            if ($i > $this->originalAutoloaderCount + 1) {
43 43
                 spl_autoload_unregister($loaders[$i]);
44 44
             }
45 45
         }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
     public function testDirectoryAutoload()
49 49
     {
50
-        Setup::registerAutoloadDirectory(__DIR__ . "/../../../../../vendor/doctrine/common/lib");
50
+        Setup::registerAutoloadDirectory(__DIR__."/../../../../../vendor/doctrine/common/lib");
51 51
 
52 52
         self::assertEquals($this->originalAutoloaderCount + 2, count(spl_autoload_functions()));
53 53
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/UnitOfWorkTest.php 2 patches
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -654,6 +654,9 @@  discard block
 block discarded – undo
654 654
         return $this->items;
655 655
     }
656 656
 
657
+    /**
658
+     * @param string $value
659
+     */
657 660
     public function setTransient($value) {
658 661
         if ($value != $this->transient) {
659 662
             $this->onPropertyChanged('transient', $this->transient, $value);
@@ -665,6 +668,9 @@  discard block
 block discarded – undo
665 668
         return $this->data;
666 669
     }
667 670
 
671
+    /**
672
+     * @param string $data
673
+     */
668 674
     public function setData($data) {
669 675
         if ($data != $this->data) {
670 676
             $this->onPropertyChanged('data', $this->data, $data);
@@ -677,6 +683,9 @@  discard block
 block discarded – undo
677 683
         $this->listeners[] = $listener;
678 684
     }
679 685
 
686
+    /**
687
+     * @param string $propName
688
+     */
680 689
     protected function onPropertyChanged($propName, $oldValue, $newValue) {
681 690
         if ($this->listeners) {
682 691
             foreach ($this->listeners as $listener) {
@@ -707,6 +716,9 @@  discard block
 block discarded – undo
707 716
         return $this->owner;
708 717
     }
709 718
 
719
+    /**
720
+     * @param NotifyChangedEntity|null $owner
721
+     */
710 722
     public function setOwner($owner) {
711 723
         $this->owner = $owner;
712 724
     }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 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;
6 6
 
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
             'empty string, single field'     => [$emptyString, ''],
440 440
             'non-empty string, single field' => [$nonEmptyString, $nonEmptyString->id],
441 441
             'empty strings, two fields'      => [$emptyStrings, ' '],
442
-            'non-empty strings, two fields'  => [$nonEmptyStrings, $nonEmptyStrings->id1 . ' ' . $nonEmptyStrings->id2],
442
+            'non-empty strings, two fields'  => [$nonEmptyStrings, $nonEmptyStrings->id1.' '.$nonEmptyStrings->id2],
443 443
             'boolean true'                   => [$booleanTrue, '1'],
444 444
             'boolean false'                  => [$booleanFalse, ''],
445 445
         ];
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
 
471 471
     public function entitiesWithInvalidIdentifiersProvider()
472 472
     {
473
-        $firstNullString  = new EntityWithCompositeStringIdentifier();
473
+        $firstNullString = new EntityWithCompositeStringIdentifier();
474 474
 
475 475
         $firstNullString->id2 = uniqid('id2', true);
476 476
 
@@ -529,7 +529,7 @@  discard block
 block discarded – undo
529 529
             ->eventManager
530 530
             ->expects(self::any())
531 531
             ->method('hasListeners')
532
-            ->willReturnCallback(function ($eventName) {
532
+            ->willReturnCallback(function($eventName) {
533 533
                 return $eventName === Events::prePersist;
534 534
             });
535 535
         $this
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
             ->method('dispatchEvent')
539 539
             ->with(
540 540
                 self::anything(),
541
-                self::callback(function (LifecycleEventArgs $args) use ($entity, $generatedFieldValue) {
541
+                self::callback(function(LifecycleEventArgs $args) use ($entity, $generatedFieldValue) {
542 542
                     /* @var $object EntityWithRandomlyGeneratedField */
543 543
                     $object = $args->getObject();
544 544
 
@@ -578,7 +578,7 @@  discard block
 block discarded – undo
578 578
             ->eventManager
579 579
             ->expects(self::any())
580 580
             ->method('hasListeners')
581
-            ->willReturnCallback(function ($eventName) {
581
+            ->willReturnCallback(function($eventName) {
582 582
                 return $eventName === Events::prePersist;
583 583
             });
584 584
         $this->eventManager->expects(self::never())->method('dispatchEvent');
Please login to merge, or discard this patch.
tests/Doctrine/Tests/OrmTestCase.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     protected $secondLevelCacheDriverImpl = null;
59 59
 
60 60
     /**
61
-     * @param array $paths
61
+     * @param string[] $paths
62 62
      *
63 63
      * @return \Doctrine\ORM\Mapping\Driver\AnnotationDriver
64 64
      */
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 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;
6 6
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
         $reader = new Annotations\CachedReader(new Annotations\AnnotationReader(), new ArrayCache());
68 68
 
69
-        Annotations\AnnotationRegistry::registerFile(__DIR__ . "/../../../lib/Doctrine/ORM/Annotation/DoctrineAnnotations.php");
69
+        Annotations\AnnotationRegistry::registerFile(__DIR__."/../../../lib/Doctrine/ORM/Annotation/DoctrineAnnotations.php");
70 70
 
71 71
         return new AnnotationDriver($reader, (array) $paths);
72 72
     }
@@ -97,11 +97,11 @@  discard block
 block discarded – undo
97 97
         $config->setMetadataCacheImpl($metadataCache);
98 98
         $config->setMetadataDriverImpl($config->newDefaultAnnotationDriver([]));
99 99
         $config->setQueryCacheImpl(self::getSharedQueryCacheImpl());
100
-        $config->setProxyDir(__DIR__ . '/Proxies');
100
+        $config->setProxyDir(__DIR__.'/Proxies');
101 101
         $config->setProxyNamespace('Doctrine\Tests\Proxies');
102 102
         $config->setMetadataDriverImpl(
103 103
             $config->newDefaultAnnotationDriver([
104
-                realpath(__DIR__ . '/Models/Cache')
104
+                realpath(__DIR__.'/Models/Cache')
105 105
             ])
106 106
         );
107 107
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/TestInit.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -2,28 +2,28 @@
 block discarded – undo
2 2
 /*
3 3
  * This file bootstraps the test environment.
4 4
  */
5
-declare(strict_types=1);
5
+declare(strict_types = 1);
6 6
 
7 7
 namespace Doctrine\Tests;
8 8
 
9 9
 error_reporting(E_ALL | E_STRICT);
10 10
 date_default_timezone_set('UTC');
11 11
 
12
-if (file_exists(__DIR__ . '/../../../vendor/autoload.php')) {
12
+if (file_exists(__DIR__.'/../../../vendor/autoload.php')) {
13 13
     // dependencies were installed via composer - this is the main project
14
-    require __DIR__ . '/../../../vendor/autoload.php';
15
-} elseif (file_exists(__DIR__ . '/../../../../../autoload.php')) {
14
+    require __DIR__.'/../../../vendor/autoload.php';
15
+} elseif (file_exists(__DIR__.'/../../../../../autoload.php')) {
16 16
     // installed as a dependency in `vendor`
17
-    require __DIR__ . '/../../../../../autoload.php';
17
+    require __DIR__.'/../../../../../autoload.php';
18 18
 } else {
19 19
     throw new \Exception('Can\'t find autoload.php. Did you install dependencies via composer?');
20 20
 }
21 21
 
22
-if ( ! file_exists(__DIR__ . '/Proxies') && ! mkdir(__DIR__ . '/Proxies')) {
23
-    throw new \Exception("Could not create " . __DIR__."/Proxies Folder.");
22
+if ( ! file_exists(__DIR__.'/Proxies') && ! mkdir(__DIR__.'/Proxies')) {
23
+    throw new \Exception("Could not create ".__DIR__."/Proxies Folder.");
24 24
 }
25 25
 
26
-if ( ! file_exists(__DIR__ . '/ORM/Proxy/generated') &&  ! mkdir(__DIR__ . '/ORM/Proxy/generated')) {
27
-    throw new \Exception('Could not create ' . __DIR__ . '/ORM/Proxy/generated Folder.');
26
+if ( ! file_exists(__DIR__.'/ORM/Proxy/generated') && ! mkdir(__DIR__.'/ORM/Proxy/generated')) {
27
+    throw new \Exception('Could not create '.__DIR__.'/ORM/Proxy/generated Folder.');
28 28
 }
29 29
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DbalTestCase.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;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/EntityNotFoundExceptionTest.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;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Utility/IdentifierFlattenerTest.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\Utility;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Proxy/ProxyFactoryTest.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\Proxy;
6 6
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Mapping/NamingStrategyTest.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\Mapping;
6 6
 
Please login to merge, or discard this patch.