1 | <?php |
||
21 | class WindowsPlatformTest extends TestCase { |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $oldPath; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $oldWorkingDirectory; |
||
31 | |||
32 | /** |
||
33 | * @var \ComponentManager\Platform\WindowsPlatform |
||
34 | */ |
||
35 | protected $platform; |
||
36 | |||
37 | public function setUp() { |
||
45 | |||
46 | public function tearDown() { |
||
51 | |||
52 | /** |
||
53 | * @covers \ComponentManager\Platform\AbstractPlatform::createTempDirectory |
||
54 | */ |
||
55 | public function testCreateTempDirectory() { |
||
62 | |||
63 | /** |
||
64 | * @covers ::expandPath |
||
65 | */ |
||
66 | public function testExpandPath() { |
||
69 | |||
70 | /** |
||
71 | * @covers \ComponentManager\Platform\AbstractPlatform::getDirectorySeparator |
||
72 | */ |
||
73 | public function testGetDirectorySeparator() { |
||
76 | |||
77 | /** |
||
78 | * @covers ::getExecutablePath |
||
79 | * @covers \ComponentManager\Platform\AbstractPlatform::getDirectorySeparator |
||
80 | * @covers \ComponentManager\Platform\AbstractPlatform::joinPaths |
||
81 | */ |
||
82 | public function testGetExecutablePath() { |
||
87 | |||
88 | /** |
||
89 | * @covers ::getExecutablePath |
||
90 | * @covers \ComponentManager\Platform\AbstractPlatform::getDirectorySeparator |
||
91 | * @covers \ComponentManager\Platform\AbstractPlatform::joinPaths |
||
92 | * |
||
93 | * @expectedException \ComponentManager\Exception\PlatformException |
||
94 | * @expectedExceptionCode 2 |
||
95 | */ |
||
96 | public function testGetExecutablePathThrows() { |
||
99 | |||
100 | /** |
||
101 | * @covers ::getHomeDirectory |
||
102 | */ |
||
103 | public function testGetHomeDirectory() { |
||
110 | |||
111 | /** |
||
112 | * @covers ::getLocalSharedDirectory |
||
113 | */ |
||
114 | public function testGetLocalSharedDirectory() { |
||
117 | |||
118 | /** |
||
119 | * @covers \ComponentManager\Platform\AbstractPlatform::getPhpExecutable |
||
120 | */ |
||
121 | public function testGetPhpExecutable() { |
||
124 | |||
125 | /** |
||
126 | * @covers \ComponentManager\Platform\AbstractPlatform::getPhpScript |
||
127 | */ |
||
128 | public function testGetPhpScript() { |
||
131 | |||
132 | /** |
||
133 | * @covers \ComponentManager\Platform\AbstractPlatform::getWorkingDirectory |
||
134 | */ |
||
135 | public function testGetWorkingDirectory() { |
||
143 | |||
144 | /** |
||
145 | * @covers \ComponentManager\Platform\AbstractPlatform::joinPaths |
||
146 | * @covers \ComponentManager\Platform\AbstractPlatform::getDirectorySeparator |
||
147 | */ |
||
148 | public function testJoinPaths() { |
||
160 | } |
||
161 |
It is generally a best practice as it is often more readable to use concatenation instead of interpolation for variables inside strings.