@@ -47,10 +47,10 @@ discard block |
||
47 | 47 | public function testConvertPathToNamespaceData() |
48 | 48 | { |
49 | 49 | return [ |
50 | - ['/A/B/C', $this->normalizePath('A\B\C')], |
|
51 | - ['A/B/C', $this->normalizePath('A\B\C')], |
|
52 | - ['A/B/C', $this->normalizePath('A\B\C')], |
|
53 | - ['A/B/C.php', $this->normalizePath('A\B\C')], |
|
50 | + ['/A/B/C', $this->normalizePath('A\B\C')], |
|
51 | + ['A/B/C', $this->normalizePath('A\B\C')], |
|
52 | + ['A/B/C', $this->normalizePath('A\B\C')], |
|
53 | + ['A/B/C.php', $this->normalizePath('A\B\C')], |
|
54 | 54 | ]; |
55 | 55 | } |
56 | 56 | |
@@ -70,9 +70,9 @@ discard block |
||
70 | 70 | public function testConvertNamespaceToPathData() |
71 | 71 | { |
72 | 72 | return [ |
73 | - ['A\B\C', $this->normalizePath('/A/B/C')], |
|
74 | - ['\A\B\C\\', $this->normalizePath('/A/B/C')], |
|
75 | - ['A\B\C\\', $this->normalizePath('/A/B/C')], |
|
73 | + ['A\B\C', $this->normalizePath('/A/B/C')], |
|
74 | + ['\A\B\C\\', $this->normalizePath('/A/B/C')], |
|
75 | + ['A\B\C\\', $this->normalizePath('/A/B/C')], |
|
76 | 76 | ]; |
77 | 77 | } |
78 | 78 |
@@ -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($this->normalizePath('tests/src/Commands/FirstCustomCommands.php'), $actual); |