Skip to content

Commit 2e7fa44

Browse files
committed
Fix patch point tests
1 parent 8b0a5e7 commit 2e7fa44

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/SPC/builder/BuilderBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ public function emitPatchPoint(string $point_name): void
422422
} else {
423423
logger()->critical('Please check with --debug option to see more details.');
424424
}
425-
exit(1);
425+
throw $e;
426426
}
427427
}
428428
}

tests/SPC/builder/BuilderTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ public function testEmitPatchPoint(string $point)
246246
public function testEmitPatchPointNotExists()
247247
{
248248
$this->expectOutputRegex('/failed to run/');
249+
$this->expectException(RuntimeException::class);
249250
$this->builder->setOption('with-added-patch', ['/tmp/patch-point.not_exsssists.php']);
250251
$this->builder->emitPatchPoint('not-exists');
251252
}

0 commit comments

Comments
 (0)