Fix patch point tests

This commit is contained in:
crazywhalecc 2024-12-05 15:52:59 +08:00 committed by Jerry Ma
parent a90a57ffab
commit 3659e20b0d
2 changed files with 2 additions and 1 deletions

View File

@ -422,7 +422,7 @@ abstract class BuilderBase
} else {
logger()->critical('Please check with --debug option to see more details.');
}
exit(1);
throw $e;
}
}
}

View File

@ -246,6 +246,7 @@ class BuilderTest extends TestCase
public function testEmitPatchPointNotExists()
{
$this->expectOutputRegex('/failed to run/');
$this->expectException(RuntimeException::class);
$this->builder->setOption('with-added-patch', ['/tmp/patch-point.not_exsssists.php']);
$this->builder->emitPatchPoint('not-exists');
}