This repository was archived by the owner on Feb 20, 2025. It is now read-only.
File tree 3 files changed +6
-7
lines changed
3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 26
26
},
27
27
"require" : {
28
28
"php" : " ^7.3 || ^8.0" ,
29
- "dragon-code/env-sync" : " ^3.4.4" ,
29
+ "dragon-code/env-sync" : " ^3.4.4 || ^4.0 " ,
30
30
"illuminate/console" : " ^7.0 || ^8.0 || ^9.0" ,
31
31
"illuminate/support" : " ^7.0 || ^8.0 || ^9.0"
32
32
},
33
33
"require-dev" : {
34
- "dragon-code/support" : " ^5.8" ,
35
34
"mockery/mockery" : " ^1.3.1" ,
36
35
"orchestra/testbench" : " ^5.0 || ^6.0 || ^7.0" ,
37
- "phpunit/phpunit" : " ^9.0 "
36
+ "phpunit/phpunit" : " ^9.5 "
38
37
},
39
38
"minimum-stability" : " stable" ,
40
39
"prefer-stable" : true ,
Original file line number Diff line number Diff line change 3
3
namespace Tests ;
4
4
5
5
use DragonCode \EnvSync \Frameworks \Laravel \ServiceProvider ;
6
- use DragonCode \Support \Facades \Helpers \Filesystem \File ;
7
6
use Orchestra \Testbench \TestCase as BaseTestCase ;
8
7
use Tests \Concerns \Configurable ;
9
8
use Tests \Concerns \Files ;
@@ -32,6 +31,8 @@ protected function clean(): void
32
31
33
32
protected function deleteFiles (): void
34
33
{
35
- File::delete ($ this ->targetPath ());
34
+ if (file_exists ($ this ->targetPath ())) {
35
+ unlink ($ this ->targetPath ());
36
+ }
36
37
}
37
38
}
Original file line number Diff line number Diff line change 5
5
namespace Tests \Unit ;
6
6
7
7
use DragonCode \EnvSync \Frameworks \Laravel \Console \Sync ;
8
- use DragonCode \Support \Facades \Helpers \Filesystem \File ;
9
8
use Tests \TestCase ;
10
9
11
10
class WithEnvTest extends TestCase
@@ -31,6 +30,6 @@ public function testWithEnv()
31
30
32
31
protected function copyFixture ()
33
32
{
34
- File:: copy ($ this ->path . '/sync-env ' , $ this ->targetPath ());
33
+ copy ($ this ->path . '/sync-env ' , $ this ->targetPath ());
35
34
}
36
35
}
You can’t perform that action at this time.
0 commit comments