Completed
Pull Request — master (#671)
by Antonio
03:03
created
tests/unit/ClassDiscovery/RelativeNamespaceDiscoveryTest.php 3 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
     public function testConvertPathToNamespaceData()
39 39
     {
40 40
         return [
41
-          ['/A/B/C', 'A\B\C'],
42
-          ['A/B/C', 'A\B\C'],
43
-          ['A/B/C', 'A\B\C'],
44
-          ['A/B/C.php', 'A\B\C'],
41
+            ['/A/B/C', 'A\B\C'],
42
+            ['A/B/C', 'A\B\C'],
43
+            ['A/B/C', 'A\B\C'],
44
+            ['A/B/C.php', 'A\B\C'],
45 45
         ];
46 46
     }
47 47
 
@@ -61,9 +61,9 @@  discard block
 block discarded – undo
61 61
     public function testConvertNamespaceToPathData()
62 62
     {
63 63
         return [
64
-          ['A\B\C', '/A/B/C'],
65
-          ['\A\B\C\\', '/A/B/C'],
66
-          ['A\B\C\\', '/A/B/C'],
64
+            ['A\B\C', '/A/B/C'],
65
+            ['\A\B\C\\', '/A/B/C'],
66
+            ['A\B\C\\', '/A/B/C'],
67 67
         ];
68 68
     }
69 69
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     public function testGetClasses()
12 12
     {
13 13
         $service = $this->getServiceInstance('\Commands');
14
-        $service->getClassLoader()->addPsr4('\\Robo\\', [realpath(__DIR__.'/../../src')]);
14
+        $service->getClassLoader()->addPsr4('\\Robo\\', [realpath(__DIR__ . '/../../src')]);
15 15
 
16 16
         $classes = $service->getClasses();
17 17
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     public function testGetFile()
23 23
     {
24 24
         $service = $this->getServiceInstance('\Commands');
25
-        $service->getClassLoader()->addPsr4('\\Robo\\', [realpath(__DIR__.'/../../src')]);
25
+        $service->getClassLoader()->addPsr4('\\Robo\\', [realpath(__DIR__ . '/../../src')]);
26 26
 
27 27
         $actual = $service->getFile('\Robo\Commands\FirstCustomCommands');
28 28
         $this->assertStringEndsWith('tests/src/Commands/FirstCustomCommands.php', $actual);
Please login to merge, or discard this patch.
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     }
78 78
 
79 79
     /**
80
-     * @param $relativeNamespace
80
+     * @param string $relativeNamespace
81 81
      *
82 82
      * @return \Robo\ClassDiscovery\RelativeNamespaceDiscovery
83 83
      */
@@ -88,6 +88,10 @@  discard block
 block discarded – undo
88 88
             ->setClassLoader(new ClassLoader());
89 89
     }
90 90
 
91
+    /**
92
+     * @param RelativeNamespaceDiscovery $object
93
+     * @param string $method
94
+     */
91 95
     protected function callProtected($object, $method, $args = [])
92 96
     {
93 97
         $r = new \ReflectionMethod($object, $method);
Please login to merge, or discard this patch.