1 | <?php |
||
9 | class RelativeNamespaceDiscoveryTest extends \Codeception\Test\Unit |
||
|
|||
10 | { |
||
11 | public function testGetClasses() |
||
21 | |||
22 | public function testGetFile() |
||
33 | |||
34 | /** |
||
35 | * @dataProvider testConvertPathToNamespaceData |
||
36 | * |
||
37 | * @param $path |
||
38 | * @param $expected |
||
39 | */ |
||
40 | public function testConvertPathToNamespace($path, $expected) |
||
46 | |||
47 | public function testConvertPathToNamespaceData() |
||
56 | |||
57 | /** |
||
58 | * @dataProvider testConvertNamespaceToPathData |
||
59 | * |
||
60 | * @param $namespace |
||
61 | * @param $expected |
||
62 | */ |
||
63 | public function testConvertNamespaceToPath($namespace, $expected) |
||
69 | |||
70 | public function testConvertNamespaceToPathData() |
||
78 | |||
79 | /** |
||
80 | * @param $relativeNamespace |
||
81 | * |
||
82 | * @return \Robo\ClassDiscovery\RelativeNamespaceDiscovery |
||
83 | */ |
||
84 | protected function getServiceInstance($relativeNamespace) |
||
91 | |||
92 | protected function callProtected($object, $method, $args = []) |
||
98 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.