Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Commit 3402384

Browse files
author
Andrey Helldar
authored
Merge pull request #13 from TheDragonCode/2.x
Added `dragon-code/env-sync` 4 support
2 parents b5fef3a + 1f5a67d commit 3402384

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Diff for: composer.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@
2626
},
2727
"require": {
2828
"php": "^7.3 || ^8.0",
29-
"dragon-code/env-sync": "^3.4.4",
29+
"dragon-code/env-sync": "^3.4.4 || ^4.0",
3030
"illuminate/console": "^7.0 || ^8.0 || ^9.0",
3131
"illuminate/support": "^7.0 || ^8.0 || ^9.0"
3232
},
3333
"require-dev": {
34-
"dragon-code/support": "^5.8",
3534
"mockery/mockery": "^1.3.1",
3635
"orchestra/testbench": "^5.0 || ^6.0 || ^7.0",
37-
"phpunit/phpunit": "^9.0"
36+
"phpunit/phpunit": "^9.5"
3837
},
3938
"minimum-stability": "stable",
4039
"prefer-stable": true,

Diff for: tests/TestCase.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Tests;
44

55
use DragonCode\EnvSync\Frameworks\Laravel\ServiceProvider;
6-
use DragonCode\Support\Facades\Helpers\Filesystem\File;
76
use Orchestra\Testbench\TestCase as BaseTestCase;
87
use Tests\Concerns\Configurable;
98
use Tests\Concerns\Files;
@@ -32,6 +31,8 @@ protected function clean(): void
3231

3332
protected function deleteFiles(): void
3433
{
35-
File::delete($this->targetPath());
34+
if (file_exists($this->targetPath())) {
35+
unlink($this->targetPath());
36+
}
3637
}
3738
}

Diff for: tests/Unit/WithEnvTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Tests\Unit;
66

77
use DragonCode\EnvSync\Frameworks\Laravel\Console\Sync;
8-
use DragonCode\Support\Facades\Helpers\Filesystem\File;
98
use Tests\TestCase;
109

1110
class WithEnvTest extends TestCase
@@ -31,6 +30,6 @@ public function testWithEnv()
3130

3231
protected function copyFixture()
3332
{
34-
File::copy($this->path . '/sync-env', $this->targetPath());
33+
copy($this->path . '/sync-env', $this->targetPath());
3534
}
3635
}

0 commit comments

Comments
 (0)