1 | <?php |
||
20 | class PlatformLinuxPlatformTest extends TestCase { |
||
|
|||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $oldPath; |
||
25 | |||
26 | /** |
||
27 | * @var \ComponentManager\Platform\LinuxPlatform |
||
28 | */ |
||
29 | protected $platform; |
||
30 | |||
31 | /** |
||
32 | * @override \PHPUnit_Framework_TestCase |
||
33 | */ |
||
34 | public function setUp() { |
||
41 | |||
42 | /** |
||
43 | * @override \PHPUnit_Framework_TestCase |
||
44 | */ |
||
45 | public function tearDown() { |
||
48 | |||
49 | /** |
||
50 | * @covers ::expandPath |
||
51 | * @covers \ComponentManager\Platform\AbstractPlatform::__construct |
||
52 | * @covers \ComponentManager\Platform\AbstractPlatform::getDirectorySeparator |
||
53 | * @covers \ComponentManager\Platform\LinuxPlatform::getHomeDirectory |
||
54 | */ |
||
55 | public function testExpandPath() { |
||
61 | |||
62 | /** |
||
63 | * @covers ::getExecutablePath |
||
64 | * @covers \ComponentManager\Platform\AbstractPlatform::__construct |
||
65 | * @covers \ComponentManager\Platform\AbstractPlatform::getDirectorySeparator |
||
66 | * @covers \ComponentManager\Platform\AbstractPlatform::joinPaths |
||
67 | */ |
||
68 | public function testGetExecutablePath() { |
||
72 | |||
73 | /** |
||
74 | * @covers ::getExecutablePath |
||
75 | * @covers \ComponentManager\Platform\AbstractPlatform::__construct |
||
76 | * @covers \ComponentManager\Platform\AbstractPlatform::getDirectorySeparator |
||
77 | * @covers \ComponentManager\Platform\AbstractPlatform::joinPaths |
||
78 | * @expectedException \ComponentManager\Exception\PlatformException |
||
79 | * @expectedExceptionCode 2 |
||
80 | */ |
||
81 | public function testGetExecutablePathThrows() { |
||
84 | |||
85 | /** |
||
86 | * @covers ::getHomeDirectory |
||
87 | * @covers \ComponentManager\Platform\AbstractPlatform::__construct |
||
88 | */ |
||
89 | public function testGetHomeDirectory() { |
||
92 | |||
93 | /** |
||
94 | * @covers ::getHomeDirectory |
||
95 | * @covers ::getLocalSharedDirectory |
||
96 | * @covers \ComponentManager\Platform\AbstractPlatform::__construct |
||
97 | * @covers \ComponentManager\Platform\AbstractPlatform::getDirectorySeparator |
||
98 | * @covers \ComponentManager\Platform\AbstractPlatform::joinPaths |
||
99 | */ |
||
100 | public function testGetLocalSharedDirectory() { |
||
103 | } |
||
104 |
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.