1 | <?php |
||
19 | class PlatformWindowsPlatformTest extends TestCase { |
||
|
|||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $oldPath; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $oldWorkingDirectory; |
||
29 | |||
30 | /** |
||
31 | * @var \ComponentManager\Platform\WindowsPlatform |
||
32 | */ |
||
33 | protected $platform; |
||
34 | |||
35 | public function setUp() { |
||
43 | |||
44 | public function tearDown() { |
||
49 | |||
50 | /** |
||
51 | * @covers \ComponentManager\Platform\AbstractPlatform::createTempDirectory |
||
52 | */ |
||
53 | public function testCreateTempDirectory() { |
||
60 | |||
61 | /** |
||
62 | * @covers ::expandPath |
||
63 | */ |
||
64 | public function testExpandPath() { |
||
67 | |||
68 | /** |
||
69 | * @covers \ComponentManager\Platform\AbstractPlatform::getDirectorySeparator |
||
70 | */ |
||
71 | public function testGetDirectorySeparator() { |
||
74 | |||
75 | /** |
||
76 | * @covers ::getExecutablePath |
||
77 | * @covers \ComponentManager\Platform\AbstractPlatform::getDirectorySeparator |
||
78 | * @covers \ComponentManager\Platform\AbstractPlatform::joinPaths |
||
79 | */ |
||
80 | public function testGetExecutablePath() { |
||
85 | |||
86 | /** |
||
87 | * @covers ::getExecutablePath |
||
88 | * @covers \ComponentManager\Platform\AbstractPlatform::getDirectorySeparator |
||
89 | * @covers \ComponentManager\Platform\AbstractPlatform::joinPaths |
||
90 | * |
||
91 | * @expectedException \ComponentManager\Exception\PlatformException |
||
92 | * @expectedExceptionCode 2 |
||
93 | */ |
||
94 | public function testGetExecutablePathThrows() { |
||
97 | |||
98 | /** |
||
99 | * @covers ::getHomeDirectory |
||
100 | */ |
||
101 | public function testGetHomeDirectory() { |
||
108 | |||
109 | /** |
||
110 | * @covers ::getLocalSharedDirectory |
||
111 | */ |
||
112 | public function testGetLocalSharedDirectory() { |
||
115 | |||
116 | /** |
||
117 | * @covers \ComponentManager\Platform\AbstractPlatform::getPhpExecutable |
||
118 | */ |
||
119 | public function testGetPhpExecutable() { |
||
122 | |||
123 | /** |
||
124 | * @covers \ComponentManager\Platform\AbstractPlatform::getPhpScript |
||
125 | */ |
||
126 | public function testGetPhpScript() { |
||
129 | |||
130 | /** |
||
131 | * @covers \ComponentManager\Platform\AbstractPlatform::getWorkingDirectory |
||
132 | */ |
||
133 | public function testGetWorkingDirectory() { |
||
141 | |||
142 | /** |
||
143 | * @covers \ComponentManager\Platform\AbstractPlatform::joinPaths |
||
144 | * @covers \ComponentManager\Platform\AbstractPlatform::getDirectorySeparator |
||
145 | */ |
||
146 | public function testJoinPaths() { |
||
158 | } |
||
159 |
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.