File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class TargetTest extends \PHPUnit_Framework_TestCase
1919 */
2020 public function testSetupPath ()
2121 {
22- $ path = sys_get_temp_dir () . '/foo ' ;
22+ $ path = sys_get_temp_dir () . '/dirFoo ' ;
2323 $ filename = 'foo.txt ' ;
2424 $ target = new Target ($ path , $ filename );
2525 $ target ->setupPath ();
@@ -37,10 +37,9 @@ public function testSetupPath()
3737 public function testSetupPathNotWritable ()
3838 {
3939 $ filename = 'foo.txt ' ;
40- $ path = sys_get_temp_dir () . '/bar ' ;
40+ $ path = sys_get_temp_dir () . '/dirBar ' ;
4141 mkdir ($ path , 0100 );
4242
43-
4443 try {
4544 $ target = new Target ($ path , $ filename );
4645 $ target ->setupPath ();
@@ -59,10 +58,10 @@ public function testSetupPathNotWritable()
5958 public function testSetupPathCantCreateDir ()
6059 {
6160 $ filename = 'foo.txt ' ;
62- $ path = sys_get_temp_dir () . '/bar ' ;
61+ $ path = sys_get_temp_dir () . '/dirFiz ' ;
6362 mkdir ($ path , 0100 );
6463 try {
65- $ target = new Target ($ path . '/baz ' , $ filename );
64+ $ target = new Target ($ path . '/dirBuz ' , $ filename );
6665 $ target ->setupPath ();
6766 } catch (\Exception $ e ) {
6867 chmod ($ path , 0755 );
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ public function testGetBaseNotRegistered()
197197 public function testRemoveDir ()
198198 {
199199 $ dir = sys_get_temp_dir ();
200- $ dirToDelete = $ dir - '/foo ' ;
200+ $ dirToDelete = $ dir . '/foo ' ;
201201 $ subDir = $ dirToDelete . '/bar ' ;
202202
203203 $ file = $ dirToDelete . '/fiz.txt ' ;
You can’t perform that action at this time.
0 commit comments