diff --git a/tests/BaseApplicationTestCase.php b/tests/BaseApplicationTestCase.php index 66c0ec1..6aa05b1 100644 --- a/tests/BaseApplicationTestCase.php +++ b/tests/BaseApplicationTestCase.php @@ -8,13 +8,13 @@ class BaseApplicationTestCase extends TestCase { use UsesNullWriter; - public function setUp(): void + protected function setUp(): void { $this->prepTestConfig(); $this->setNullWriter(); } - public function tearDown(): void + protected function tearDown(): void { Mockery::close(); } diff --git a/tests/BrewTest.php b/tests/BrewTest.php index 51b7b78..e708fdf 100644 --- a/tests/BrewTest.php +++ b/tests/BrewTest.php @@ -316,7 +316,7 @@ public function test_unlink_will_pass_formula_to_run_as_user() $this->assertSame('Some output', resolve(Brew::class)->unlink('aformula')); } - public function test_getRunningServices_will_throw_exception_on_failure() + public function test_get_running_services_will_throw_exception_on_failure() { $this->expectException(DomainException::class); @@ -331,7 +331,7 @@ public function test_getRunningServices_will_throw_exception_on_failure() resolve(Brew::class)->getRunningServices(true); } - public function test_getRunningServices_will_pass_to_brew_services_list_and_return_array() + public function test_get_running_services_will_pass_to_brew_services_list_and_return_array() { $cli = Mockery::mock(CommandLine::class); $cli->shouldReceive('runAsUser')->once()->withArgs([ @@ -349,7 +349,7 @@ public function test_getRunningServices_will_pass_to_brew_services_list_and_retu ], array_values($result->all())); } - public function test_getAllRunningServices_will_return_both_root_and_user_services() + public function test_get_all_running_services_will_return_both_root_and_user_services() { $cli = Mockery::mock(CommandLine::class); $cli->shouldReceive('run')->once()->withArgs([ @@ -369,7 +369,7 @@ public function test_getAllRunningServices_will_return_both_root_and_user_servic ], array_values($result->all())); } - public function test_getAllRunningServices_will_return_unique_services() + public function test_get_all_running_services_will_return_unique_services() { $cli = Mockery::mock(CommandLine::class); $cli->shouldReceive('run')->once()->andReturn('service1'.PHP_EOL.'service2'.PHP_EOL.'service1'.PHP_EOL); diff --git a/tests/PhpFpmTest.php b/tests/PhpFpmTest.php index 232b45c..4a5e4e3 100644 --- a/tests/PhpFpmTest.php +++ b/tests/PhpFpmTest.php @@ -240,7 +240,7 @@ public function test_stop_unused_php_versions() resolve(PhpFpm::class)->stopIfUnused('php@7.2'); } - public function test_stopRunning_will_pass_filtered_result_of_getRunningServices_to_stopService() + public function test_stop_running_will_pass_filtered_result_of_get_running_services_to_stop_service() { $brewMock = Mockery::mock(Brew::class); $brewMock->shouldReceive('getAllRunningServices')->once()