Skip to content

Commit 27c4b8b

Browse files
committed
L5.8 and 6.0 support
1 parent 6ea68c6 commit 27c4b8b

File tree

5 files changed

+20
-9
lines changed

5 files changed

+20
-9
lines changed

.phpunit.result.cache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
C:37:"PHPUnit\Runner\DefaultTestResultCache":2968:{a:2:{s:7:"defects";a:0:{}s:5:"times";a:26:{s:81:"HighSolutions\LaravelEnvironments\Test\CopyCommandTest::copy_existing_environment";d:0.894;s:89:"HighSolutions\LaravelEnvironments\Test\CopyCommandTest::not_copy_not_existing_environment";d:0.051;s:99:"HighSolutions\LaravelEnvironments\Test\CopyCommandTest::not_copy_when_has_to_overwrite_not_intended";d:0.063;s:96:"HighSolutions\LaravelEnvironments\Test\CopyCommandTest::copy_when_has_to_overwrite_when_intended";d:0.084;s:90:"HighSolutions\LaravelEnvironments\Test\CopyCommandTest::copy_environment_with_nested_files";d:0.105;s:80:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::create_new_environment";d:0.062;s:81:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::create_two_environments";d:0.071;s:92:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::not_overwrite_existing_environment";d:0.059;s:103:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::overwrite_existing_environment_when_intend_to";d:0.062;s:138:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::overwrite_existing_environment_when_intend_to_but_not_delete_stored_filed_before";d:0.053;s:98:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::created_environment_contains_copied_file";d:0.061;s:126:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::created_environment_without_overwriting_contains_old_version_of_file";d:0.057;s:123:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::created_environment_with_overwriting_contains_new_version_of_file";d:0.069;s:99:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::created_environment_contains_copied_files";d:0.087;s:81:"HighSolutions\LaravelEnvironments\Test\ListCommandTest::list_existing_environment";d:0.066;s:87:"HighSolutions\LaravelEnvironments\Test\ListCommandTest::list_existing_many_environments";d:0.088;s:78:"HighSolutions\LaravelEnvironments\Test\MakeCommandTest::create_new_environment";d:0.071;s:97:"HighSolutions\LaravelEnvironments\Test\MakeCommandTest::overwrite_existing_environment_by_default";d:0.074;s:85:"HighSolutions\LaravelEnvironments\Test\RemoveCommandTest::remove_existing_environment";d:0.05;s:93:"HighSolutions\LaravelEnvironments\Test\RemoveCommandTest::not_remove_not_existing_environment";d:0.046;s:76:"HighSolutions\LaravelEnvironments\Test\SetCommandTest::set_empty_environment";d:0.049;s:84:"HighSolutions\LaravelEnvironments\Test\SetCommandTest::set_environment_with_one_file";d:0.077;s:90:"HighSolutions\LaravelEnvironments\Test\SetCommandTest::set_environment_with_multiple_files";d:0.113;s:90:"HighSolutions\LaravelEnvironments\Test\SetCommandTest::sequentional_environment_activation";d:0.096;s:112:"HighSolutions\LaravelEnvironments\Test\SetCommandTest::set_env_without_one_of_files_and_delete_this_missing_file";d:0.087;s:134:"HighSolutions\LaravelEnvironments\Test\SetCommandTest::set_env_without_one_of_files_and_not_delete_this_missing_file_because_of_config";d:0.081;}}}

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Or by adding the following line to the `require` section of your Laravel webapp'
2020

2121
```javascript
2222
"require": {
23-
"HighSolutions/laravel-environments": "2.*"
23+
"HighSolutions/laravel-environments": "3.*"
2424
}
2525
```
2626

@@ -132,6 +132,9 @@ vendor/bin/phpunit
132132
Changelog
133133
---------
134134

135+
3.0.0
136+
* Laravel 5.8 and 6.0 support
137+
135138
2.2.0
136139
* Change name of config file from `config/laravel-environments.php` to `config/environments.php`
137140

composer.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"license": "MIT",
1212
"require": {
1313
"php": ">=5.4.0",
14-
"illuminate/console": "5.*",
15-
"illuminate/support": "5.*"
14+
"illuminate/console": "5.*|^6.0",
15+
"illuminate/support": "5.*|^6.0"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "6.*|7.*",
19-
"orchestra/testbench" : "3.*",
18+
"phpunit/phpunit": "6.*|7.*|8.*",
19+
"orchestra/testbench" : "4.*",
2020
"mockery/mockery": "^1.0"
2121
},
2222
"autoload": {
@@ -44,7 +44,10 @@
4444
"Laravel 5.3",
4545
"Laravel 5.4",
4646
"Laravel 5.5",
47-
"Laravel 5.6"
47+
"Laravel 5.6",
48+
"Laravel 5.7",
49+
"Laravel 5.8",
50+
"Laravel 6.0"
4851
],
4952
"laravel": {
5053
"providers": [

phpunit.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
syntaxCheck="false"
1211
>
1312
<testsuites>
1413
<testsuite name="Package Test Suite">

tests/TestCase.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ protected function basePath()
4545
return $this->getTempDirectory('__base__');
4646
}
4747

48-
public function setUp()
48+
public function setUp(): void
4949
{
5050
parent::setUp();
5151

5252
File::cleanDirectory(config('environments.path'));
5353
}
5454

55-
public function tearDown()
55+
public function tearDown(): void
5656
{
5757
File::cleanDirectory(config('environments.path'));
5858
}
@@ -89,4 +89,9 @@ protected function assertNestedArrayContains($search, $array)
8989

9090
$this->fail("Failed asserting that an array contains '$search'.");
9191
}
92+
93+
public function artisan($command, $params = [])
94+
{
95+
return \Artisan::call($command, $params);
96+
}
9297
}

0 commit comments

Comments
 (0)