@@ 51-57 (lines=7) @@ | ||
48 | * @param $path |
|
49 | * @param $expected |
|
50 | */ |
|
51 | public function testConvertPathToNamespace($path, $expected) |
|
52 | { |
|
53 | $classLoader = new ClassLoader(); |
|
54 | $discovery = new RelativeNamespaceDiscovery($classLoader); |
|
55 | $actual = $this->callProtected($discovery, 'convertPathToNamespace', [$path]); |
|
56 | $this->assertEquals($expected, $actual); |
|
57 | } |
|
58 | ||
59 | public function convertPathToNamespaceData() |
|
60 | { |
|
@@ 75-81 (lines=7) @@ | ||
72 | * @param $namespace |
|
73 | * @param $expected |
|
74 | */ |
|
75 | public function testConvertNamespaceToPath($namespace, $expected) |
|
76 | { |
|
77 | $classLoader = new ClassLoader(); |
|
78 | $discovery = new RelativeNamespaceDiscovery($classLoader); |
|
79 | $actual = $this->callProtected($discovery, 'convertNamespaceToPath', [$namespace]); |
|
80 | $this->assertEquals($expected, $actual); |
|
81 | } |
|
82 | ||
83 | public function convertNamespaceToPathData() |
|
84 | { |