Skip to content

Commit 79c72bf

Browse files
Fix expected exception type: ErrorException -> ParseException
Co-Authored-By: Ryo Kobayashi <cuba6vst@gmail.com>
1 parent 7a59e85 commit 79c72bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/Feature/InstallCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function test_execute_install_command_successfully()
3030

3131
public function test_throw_exception_when_docker_compose_yml_is_not_found()
3232
{
33-
$this->expectException(\ErrorException::class);
33+
$this->expectException(\Symfony\Component\Yaml\Exception\ParseException::class);
3434
if (file_exists($this->app->basePath('docker-compose.yml'))) {
3535
unlink($this->app->basePath('docker-compose.yml'));
3636
} else if (file_exists($this->app->basePath('compose.yaml'))) {

tests/Feature/PublishCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function test_execute_publish_command_successfully()
2424

2525
public function test_throw_exception_when_docker_compose_yml_is_not_found()
2626
{
27-
$this->expectException(\ErrorException::class);
27+
$this->expectException(\Symfony\Component\Yaml\Exception\ParseException::class);
2828
if (file_exists($this->app->basePath('docker-compose.yml'))) {
2929
unlink($this->app->basePath('docker-compose.yml'));
3030
} else if (file_exists($this->app->basePath('compose.yaml'))) {

0 commit comments

Comments
 (0)