aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src')
-rw-r--r--crates/shirabe/src/event_dispatcher/event_dispatcher.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/shirabe/src/event_dispatcher/event_dispatcher.rs b/crates/shirabe/src/event_dispatcher/event_dispatcher.rs
index 49de9605..6deb130e 100644
--- a/crates/shirabe/src/event_dispatcher/event_dispatcher.rs
+++ b/crates/shirabe/src/event_dispatcher/event_dispatcher.rs
@@ -122,6 +122,12 @@ impl EventDispatcher {
self.get_listeners_override = Some(GetListenersOverride(callback));
}
+ /// For testing only. Exposes the protected `getPhpExecCommand`, mirroring the PHP tests'
+ /// `new \ReflectionMethod($dispatcher, 'getPhpExecCommand')`.
+ pub fn __get_php_exec_command(&self) -> anyhow::Result<String> {
+ self.get_php_exec_command()
+ }
+
/// Set whether script handlers are active or not
pub fn set_run_scripts(&mut self, run_scripts: bool) {
self.run_scripts = run_scripts;