1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 08:40:09 +01:00

Fix code styling

This commit is contained in:
mattstauffer
2024-11-25 17:14:52 +00:00
committed by github-actions[bot]
parent 07432a9729
commit 76ece5380a
3 changed files with 7 additions and 7 deletions

View File

@@ -8,13 +8,13 @@ class BaseApplicationTestCase extends TestCase
{ {
use UsesNullWriter; use UsesNullWriter;
public function setUp(): void protected function setUp(): void
{ {
$this->prepTestConfig(); $this->prepTestConfig();
$this->setNullWriter(); $this->setNullWriter();
} }
public function tearDown(): void protected function tearDown(): void
{ {
Mockery::close(); Mockery::close();
} }

View File

@@ -316,7 +316,7 @@ public function test_unlink_will_pass_formula_to_run_as_user()
$this->assertSame('Some output', resolve(Brew::class)->unlink('aformula')); $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); $this->expectException(DomainException::class);
@@ -331,7 +331,7 @@ public function test_getRunningServices_will_throw_exception_on_failure()
resolve(Brew::class)->getRunningServices(true); 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 = Mockery::mock(CommandLine::class);
$cli->shouldReceive('runAsUser')->once()->withArgs([ $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())); ], 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 = Mockery::mock(CommandLine::class);
$cli->shouldReceive('run')->once()->withArgs([ $cli->shouldReceive('run')->once()->withArgs([
@@ -369,7 +369,7 @@ public function test_getAllRunningServices_will_return_both_root_and_user_servic
], array_values($result->all())); ], 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 = Mockery::mock(CommandLine::class);
$cli->shouldReceive('run')->once()->andReturn('service1'.PHP_EOL.'service2'.PHP_EOL.'service1'.PHP_EOL); $cli->shouldReceive('run')->once()->andReturn('service1'.PHP_EOL.'service2'.PHP_EOL.'service1'.PHP_EOL);

View File

@@ -240,7 +240,7 @@ public function test_stop_unused_php_versions()
resolve(PhpFpm::class)->stopIfUnused('php@7.2'); 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 = Mockery::mock(Brew::class);
$brewMock->shouldReceive('getAllRunningServices')->once() $brewMock->shouldReceive('getAllRunningServices')->once()