Skip to content

Commit

Permalink
Merge pull request #13 from TheDragonCode/2.x
Browse files Browse the repository at this point in the history
Added `dragon-code/env-sync` 4 support
  • Loading branch information
Andrey Helldar authored Apr 20, 2022
2 parents b5fef3a + 1f5a67d commit 3402384
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@
},
"require": {
"php": "^7.3 || ^8.0",
"dragon-code/env-sync": "^3.4.4",
"dragon-code/env-sync": "^3.4.4 || ^4.0",
"illuminate/console": "^7.0 || ^8.0 || ^9.0",
"illuminate/support": "^7.0 || ^8.0 || ^9.0"
},
"require-dev": {
"dragon-code/support": "^5.8",
"mockery/mockery": "^1.3.1",
"orchestra/testbench": "^5.0 || ^6.0 || ^7.0",
"phpunit/phpunit": "^9.0"
"phpunit/phpunit": "^9.5"
},
"minimum-stability": "stable",
"prefer-stable": true,
Expand Down
5 changes: 3 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Tests;

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

protected function deleteFiles(): void
{
File::delete($this->targetPath());
if (file_exists($this->targetPath())) {
unlink($this->targetPath());
}
}
}
3 changes: 1 addition & 2 deletions tests/Unit/WithEnvTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Tests\Unit;

use DragonCode\EnvSync\Frameworks\Laravel\Console\Sync;
use DragonCode\Support\Facades\Helpers\Filesystem\File;
use Tests\TestCase;

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

protected function copyFixture()
{
File::copy($this->path . '/sync-env', $this->targetPath());
copy($this->path . '/sync-env', $this->targetPath());
}
}

0 comments on commit 3402384

Please sign in to comment.