@@ -49,8 +49,8 @@ abstract function getTestDeployStrategyFiletype($isDir = false);
49
49
protected function setUp ()
50
50
{
51
51
$ this ->filesystem = new \Composer \Util \Filesystem ();
52
- $ this ->sourceDir = sys_get_temp_dir () . DS . "module_dir " ;
53
- $ this ->destDir = sys_get_temp_dir () . DS . "magento_dir " ;
52
+ $ this ->sourceDir = sys_get_temp_dir () . DS . $ this -> getName () . DS . "module_dir " ;
53
+ $ this ->destDir = sys_get_temp_dir () . DS . $ this -> getName () . DS . "magento_dir " ;
54
54
$ this ->filesystem ->ensureDirectoryExists ($ this ->sourceDir );
55
55
$ this ->filesystem ->ensureDirectoryExists ($ this ->destDir );
56
56
@@ -70,6 +70,8 @@ protected function tearDown()
70
70
/**
71
71
* @param string $file
72
72
* @param string $type
73
+ * @throws \InvalidArgumentException
74
+ * @throws \PHPUnit_Framework_AssertionFailedError
73
75
*/
74
76
public function assertFileType ($ file , $ type )
75
77
{
@@ -139,7 +141,7 @@ public function testAddMapping()
139
141
140
142
public function testCreate ()
141
143
{
142
- $ src = 'local .xml ' ;
144
+ $ src = 'local1 .xml ' ;
143
145
$ dest = 'local2.xml ' ;
144
146
touch ($ this ->sourceDir . DS . $ src );
145
147
$ this ->assertTrue (is_readable ($ this ->sourceDir . DS . $ src ));
@@ -150,7 +152,7 @@ public function testCreate()
150
152
151
153
public function testCopyDirToDir ()
152
154
{
153
- $ src = "hello " ;
155
+ $ src = "hello1 " ;
154
156
$ dest = "hello2 " ;
155
157
$ this ->mkdir ($ this ->sourceDir . DS . $ src );
156
158
touch ($ this ->sourceDir . DS . $ src . DS . "local.xml " );
@@ -235,7 +237,7 @@ public function testGlobTargetDirDoesNotExists()
235
237
236
238
public function testGlobSlashDirectoryExists ()
237
239
{
238
- $ globSource = "sourcedir/test1 .xml " ;
240
+ $ globSource = "sourcedir/test .xml " ;
239
241
$ this ->mkdir ($ this ->sourceDir . DS . dirname ($ globSource ));
240
242
touch ($ this ->sourceDir . DS . $ globSource );
241
243
@@ -254,7 +256,7 @@ public function testGlobSlashDirectoryExists()
254
256
255
257
public function testGlobSlashDirectoryDoesNotExists ()
256
258
{
257
- $ globSource = "sourcedir/test2 .xml " ;
259
+ $ globSource = "sourcedir/test .xml " ;
258
260
$ this ->mkdir ($ this ->sourceDir . DS . dirname ($ globSource ));
259
261
touch ($ this ->sourceDir . DS . $ globSource );
260
262
@@ -274,7 +276,7 @@ public function testGlobWildcardTargetDirDoesNotExist()
274
276
{
275
277
$ globSource = "sourcedir/* " ;
276
278
$ glob_dir = dirname ($ globSource );
277
- $ files = array ('test3 .xml ' , 'test4 .xml ' );
279
+ $ files = array ('test1 .xml ' , 'test2 .xml ' );
278
280
$ this ->mkdir ($ this ->sourceDir . DS . $ glob_dir );
279
281
foreach ($ files as $ file ) {
280
282
touch ($ this ->sourceDir . DS . $ glob_dir . DS . $ file );
@@ -301,7 +303,7 @@ public function testGlobWildcardTargetDirDoesExist()
301
303
{
302
304
$ globSource = "sourcedir/* " ;
303
305
$ glob_dir = dirname ($ globSource );
304
- $ files = array ('test5 .xml ' , 'test6 .xml ' );
306
+ $ files = array ('test1 .xml ' , 'test2 .xml ' );
305
307
$ this ->mkdir ($ this ->sourceDir . DS . $ glob_dir );
306
308
foreach ($ files as $ file ) {
307
309
touch ($ this ->sourceDir . DS . $ glob_dir . DS . $ file );
@@ -337,7 +339,7 @@ public function testSourceAndTargetAreDirsDoNotExist()
337
339
$ this ->setUp ();
338
340
339
341
list ($ globSource , $ dest ) = $ fixture ;
340
- $ sourceDirContent = "test7 .xml " ;
342
+ $ sourceDirContent = "test .xml " ;
341
343
$ this ->mkdir ($ this ->sourceDir . DS . $ globSource );
342
344
touch ($ this ->sourceDir . DS . $ globSource . DS . $ sourceDirContent );
343
345
@@ -369,7 +371,7 @@ public function testSourceAndTargetAreDirsDoExist()
369
371
$ this ->setUp ();
370
372
371
373
list ($ globSource , $ dest ) = $ fixture ;
372
- $ sourceDirContent = "test8 .xml " ;
374
+ $ sourceDirContent = "test .xml " ;
373
375
$ this ->mkdir ($ this ->sourceDir . DS . $ globSource );
374
376
touch ($ this ->sourceDir . DS . $ globSource . DS . $ sourceDirContent );
375
377
0 commit comments