Skip to content

Commit 68b46ab

Browse files
committed
Support Laravel 9.x
1 parent 1b278e9 commit 68b46ab

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

.phpunit.result.cache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
C:37:"PHPUnit\Runner\DefaultTestResultCache":2965:{a:2:{s:7:"defects";a:0:{}s:5:"times";a:26:{s:81:"HighSolutions\LaravelEnvironments\Test\CopyCommandTest::copy_existing_environment";d:1.128;s:89:"HighSolutions\LaravelEnvironments\Test\CopyCommandTest::not_copy_not_existing_environment";d:0.063;s:99:"HighSolutions\LaravelEnvironments\Test\CopyCommandTest::not_copy_when_has_to_overwrite_not_intended";d:0.07;s:96:"HighSolutions\LaravelEnvironments\Test\CopyCommandTest::copy_when_has_to_overwrite_when_intended";d:0.112;s:90:"HighSolutions\LaravelEnvironments\Test\CopyCommandTest::copy_environment_with_nested_files";d:0.139;s:80:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::create_new_environment";d:0.081;s:81:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::create_two_environments";d:0.092;s:92:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::not_overwrite_existing_environment";d:0.102;s:103:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::overwrite_existing_environment_when_intend_to";d:0.104;s:138:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::overwrite_existing_environment_when_intend_to_but_not_delete_stored_filed_before";d:0.09;s:98:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::created_environment_contains_copied_file";d:0.088;s:126:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::created_environment_without_overwriting_contains_old_version_of_file";d:0.111;s:123:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::created_environment_with_overwriting_contains_new_version_of_file";d:0.107;s:99:"HighSolutions\LaravelEnvironments\Test\CreateCommandTest::created_environment_contains_copied_files";d:0.23;s:81:"HighSolutions\LaravelEnvironments\Test\ListCommandTest::list_existing_environment";d:0.361;s:87:"HighSolutions\LaravelEnvironments\Test\ListCommandTest::list_existing_many_environments";d:0.138;s:78:"HighSolutions\LaravelEnvironments\Test\MakeCommandTest::create_new_environment";d:0.094;s:97:"HighSolutions\LaravelEnvironments\Test\MakeCommandTest::overwrite_existing_environment_by_default";d:0.104;s:85:"HighSolutions\LaravelEnvironments\Test\RemoveCommandTest::remove_existing_environment";d:0.08;s:93:"HighSolutions\LaravelEnvironments\Test\RemoveCommandTest::not_remove_not_existing_environment";d:0.081;s:76:"HighSolutions\LaravelEnvironments\Test\SetCommandTest::set_empty_environment";d:0.084;s:84:"HighSolutions\LaravelEnvironments\Test\SetCommandTest::set_environment_with_one_file";d:0.125;s:90:"HighSolutions\LaravelEnvironments\Test\SetCommandTest::set_environment_with_multiple_files";d:0.194;s:90:"HighSolutions\LaravelEnvironments\Test\SetCommandTest::sequentional_environment_activation";d:0.154;s:112:"HighSolutions\LaravelEnvironments\Test\SetCommandTest::set_env_without_one_of_files_and_delete_this_missing_file";d:0.128;s:134:"HighSolutions\LaravelEnvironments\Test\SetCommandTest::set_env_without_one_of_files_and_not_delete_this_missing_file_because_of_config";d:0.153;}}}
1+
{"version":1,"defects":{"HighSolutions\\LaravelEnvironments\\Test\\CopyCommandTest::not_copy_not_existing_environment":6,"HighSolutions\\LaravelEnvironments\\Test\\RemoveCommandTest::remove_existing_environment":4,"HighSolutions\\LaravelEnvironments\\Test\\RemoveCommandTest::not_remove_not_existing_environment":4},"times":{"HighSolutions\\LaravelEnvironments\\Test\\CopyCommandTest::copy_existing_environment":0.668,"HighSolutions\\LaravelEnvironments\\Test\\CopyCommandTest::not_copy_not_existing_environment":0.044,"HighSolutions\\LaravelEnvironments\\Test\\CopyCommandTest::not_copy_when_has_to_overwrite_not_intended":0.067,"HighSolutions\\LaravelEnvironments\\Test\\CopyCommandTest::copy_when_has_to_overwrite_when_intended":0.094,"HighSolutions\\LaravelEnvironments\\Test\\CopyCommandTest::copy_environment_with_nested_files":0.128,"HighSolutions\\LaravelEnvironments\\Test\\CreateCommandTest::create_new_environment":0.054,"HighSolutions\\LaravelEnvironments\\Test\\CreateCommandTest::create_two_environments":0.079,"HighSolutions\\LaravelEnvironments\\Test\\CreateCommandTest::not_overwrite_existing_environment":0.062,"HighSolutions\\LaravelEnvironments\\Test\\CreateCommandTest::overwrite_existing_environment_when_intend_to":0.059,"HighSolutions\\LaravelEnvironments\\Test\\CreateCommandTest::overwrite_existing_environment_when_intend_to_but_not_delete_stored_filed_before":0.051,"HighSolutions\\LaravelEnvironments\\Test\\CreateCommandTest::created_environment_contains_copied_file":0.053,"HighSolutions\\LaravelEnvironments\\Test\\CreateCommandTest::created_environment_without_overwriting_contains_old_version_of_file":0.066,"HighSolutions\\LaravelEnvironments\\Test\\CreateCommandTest::created_environment_with_overwriting_contains_new_version_of_file":0.057,"HighSolutions\\LaravelEnvironments\\Test\\CreateCommandTest::created_environment_contains_copied_files":0.08,"HighSolutions\\LaravelEnvironments\\Test\\ListCommandTest::list_existing_environment":0.06,"HighSolutions\\LaravelEnvironments\\Test\\ListCommandTest::list_existing_many_environments":0.053,"HighSolutions\\LaravelEnvironments\\Test\\MakeCommandTest::create_new_environment":0.045,"HighSolutions\\LaravelEnvironments\\Test\\MakeCommandTest::overwrite_existing_environment_by_default":0.142,"HighSolutions\\LaravelEnvironments\\Test\\RemoveCommandTest::remove_existing_environment":0.091,"HighSolutions\\LaravelEnvironments\\Test\\RemoveCommandTest::not_remove_not_existing_environment":0.075,"HighSolutions\\LaravelEnvironments\\Test\\SetCommandTest::set_empty_environment":0.114,"HighSolutions\\LaravelEnvironments\\Test\\SetCommandTest::set_environment_with_one_file":0.115,"HighSolutions\\LaravelEnvironments\\Test\\SetCommandTest::set_environment_with_multiple_files":0.167,"HighSolutions\\LaravelEnvironments\\Test\\SetCommandTest::sequentional_environment_activation":0.138,"HighSolutions\\LaravelEnvironments\\Test\\SetCommandTest::set_env_without_one_of_files_and_delete_this_missing_file":0.106,"HighSolutions\\LaravelEnvironments\\Test\\SetCommandTest::set_env_without_one_of_files_and_not_delete_this_missing_file_because_of_config":0.089}}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ vendor/bin/phpunit
132132
Changelog
133133
---------
134134

135+
3.3.0
136+
* Laravel 9.0 support
137+
135138
3.2.0
136139
* Laravel 8.0 support
137140

composer.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
],
1111
"license": "MIT",
1212
"require": {
13-
"php": ">=5.4.0",
14-
"illuminate/console": "5.*|^6.0|^7.0|^8.0",
15-
"illuminate/support": "5.*|^6.0|^7.0|^8.0"
13+
"php": ">=5.4.0|>=8.0.2",
14+
"illuminate/console": "5.*|^6.0|^7.0|^8.0|^9.0",
15+
"illuminate/support": "5.*|^6.0|^7.0|^8.0|^9.0"
1616
},
1717
"require-dev": {
18-
"phpunit/phpunit": "6.*|7.*|8.*",
19-
"orchestra/testbench" : "3.*|4.*|5.*|6.*",
18+
"phpunit/phpunit": "6.*|7.*|8.*|9.*",
19+
"orchestra/testbench" : "3.*|4.*|5.*|6.*|7.*",
2020
"mockery/mockery": "^1.0"
2121
},
2222
"autoload": {
@@ -49,7 +49,8 @@
4949
"Laravel 5.8",
5050
"Laravel 6.0",
5151
"Laravel 7.0",
52-
"Laravel 8.0"
52+
"Laravel 8.0",
53+
"Laravel 9.0"
5354
],
5455
"laravel": {
5556
"providers": [

tests/unit/CopyCommandTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ public function copy_existing_environment()
3636
/** @test */
3737
public function not_copy_not_existing_environment()
3838
{
39-
$this->assertDirectoryNotExists('local');
39+
$this->assertDirectoryDoesNotExist('local');
4040

4141
$this->executeCopy([
4242
'old' => 'local',
4343
'new' => 'production',
4444
]);
4545

46-
$this->assertDirectoryNotExists('production');
46+
$this->assertDirectoryDoesNotExist('production');
4747
}
4848

4949
/** @test */

tests/unit/RemoveCommandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ public function remove_existing_environment()
2727
'name' => 'local',
2828
]);
2929

30-
$this->assertDirectoryNotExists('local');
30+
$this->assertDirectoryDoesNotExist('local');
3131
}
3232

3333
/** @test */
3434
public function not_remove_not_existing_environment()
3535
{
36-
$this->assertDirectoryNotExists('local');
36+
$this->assertDirectoryDoesNotExist('local');
3737

3838
$code = $this->executeRemove([
3939
'name' => 'local',
4040
]);
4141

4242
$this->assertEquals(1, $code);
43-
$this->assertDirectoryNotExists('local');
43+
$this->assertDirectoryDoesNotExist('local');
4444
}
4545
}

0 commit comments

Comments
 (0)