|
@@ 45-51 (lines=7) @@
|
| 42 |
|
* @param $path |
| 43 |
|
* @param $expected |
| 44 |
|
*/ |
| 45 |
|
public function testConvertPathToNamespace($path, $expected) |
| 46 |
|
{ |
| 47 |
|
$classLoader = new ClassLoader(); |
| 48 |
|
$discovery = new RelativeNamespaceDiscovery($classLoader); |
| 49 |
|
$actual = $this->callProtected($discovery, 'convertPathToNamespace', [$path]); |
| 50 |
|
$this->assertEquals($expected, $actual); |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
public function testConvertPathToNamespaceData() |
| 54 |
|
{ |
|
@@ 69-75 (lines=7) @@
|
| 66 |
|
* @param $namespace |
| 67 |
|
* @param $expected |
| 68 |
|
*/ |
| 69 |
|
public function testConvertNamespaceToPath($namespace, $expected) |
| 70 |
|
{ |
| 71 |
|
$classLoader = new ClassLoader(); |
| 72 |
|
$discovery = new RelativeNamespaceDiscovery($classLoader); |
| 73 |
|
$actual = $this->callProtected($discovery, 'convertNamespaceToPath', [$namespace]); |
| 74 |
|
$this->assertEquals($expected, $actual); |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
public function testConvertNamespaceToPathData() |
| 78 |
|
{ |