@@ -11,7 +11,7 @@ discard block |
||
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 |
||
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); |
@@ -49,10 +49,10 @@ discard block |
||
49 | 49 | public function testConvertPathToNamespaceData() |
50 | 50 | { |
51 | 51 | return [ |
52 | - ["{$this->separator}A{$this->separator}B{$this->separator}C", 'A\B\C'], |
|
53 | - ["A{$this->separator}B{$this->separator}C", 'A\B\C'], |
|
54 | - ["A{$this->separator}B{$this->separator}C", 'A\B\C'], |
|
55 | - ["A{$this->separator}B{$this->separator}C.php", 'A\B\C'], |
|
52 | + ["{$this->separator}A{$this->separator}B{$this->separator}C", 'A\B\C'], |
|
53 | + ["A{$this->separator}B{$this->separator}C", 'A\B\C'], |
|
54 | + ["A{$this->separator}B{$this->separator}C", 'A\B\C'], |
|
55 | + ["A{$this->separator}B{$this->separator}C.php", 'A\B\C'], |
|
56 | 56 | ]; |
57 | 57 | } |
58 | 58 | |
@@ -72,9 +72,9 @@ discard block |
||
72 | 72 | public function testConvertNamespaceToPathData() |
73 | 73 | { |
74 | 74 | return [ |
75 | - ['A\B\C', "{$this->separator}A{$this->separator}B{$this->separator}C"], |
|
76 | - ['\A\B\C\\', "{$this->separator}A{$this->separator}B{$this->separator}C"], |
|
77 | - ['A\B\C\\', "{$this->separator}A{$this->separator}B{$this->separator}C"], |
|
75 | + ['A\B\C', "{$this->separator}A{$this->separator}B{$this->separator}C"], |
|
76 | + ['\A\B\C\\', "{$this->separator}A{$this->separator}B{$this->separator}C"], |
|
77 | + ['A\B\C\\', "{$this->separator}A{$this->separator}B{$this->separator}C"], |
|
78 | 78 | ]; |
79 | 79 | } |
80 | 80 |