mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
Fix patch point tests
This commit is contained in:
parent
a90a57ffab
commit
3659e20b0d
@ -422,7 +422,7 @@ abstract class BuilderBase
|
|||||||
} else {
|
} else {
|
||||||
logger()->critical('Please check with --debug option to see more details.');
|
logger()->critical('Please check with --debug option to see more details.');
|
||||||
}
|
}
|
||||||
exit(1);
|
throw $e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -246,6 +246,7 @@ class BuilderTest extends TestCase
|
|||||||
public function testEmitPatchPointNotExists()
|
public function testEmitPatchPointNotExists()
|
||||||
{
|
{
|
||||||
$this->expectOutputRegex('/failed to run/');
|
$this->expectOutputRegex('/failed to run/');
|
||||||
|
$this->expectException(RuntimeException::class);
|
||||||
$this->builder->setOption('with-added-patch', ['/tmp/patch-point.not_exsssists.php']);
|
$this->builder->setOption('with-added-patch', ['/tmp/patch-point.not_exsssists.php']);
|
||||||
$this->builder->emitPatchPoint('not-exists');
|
$this->builder->emitPatchPoint('not-exists');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user