aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/util/error_handler_test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/tests/util/error_handler_test.rs')
-rw-r--r--crates/shirabe/tests/util/error_handler_test.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/crates/shirabe/tests/util/error_handler_test.rs b/crates/shirabe/tests/util/error_handler_test.rs
index 7295cf2a..ed5e6a29 100644
--- a/crates/shirabe/tests/util/error_handler_test.rs
+++ b/crates/shirabe/tests/util/error_handler_test.rs
@@ -5,15 +5,15 @@
// trigger those by undefined-index access / array_merge misuse. There is no equivalent
// runtime mechanism in Rust to port faithfully.
+// TODO(phase-d): ErrorHandler::register() installs a PHP set_error_handler; no Rust equivalent.
#[allow(dead_code)]
fn set_up() {
- // ErrorHandler::register() installs a PHP set_error_handler; no Rust equivalent.
todo!()
}
+// TODO(phase-d): restore_error_handler() is PHP runtime machinery; no Rust equivalent.
#[allow(dead_code)]
fn tear_down() {
- // restore_error_handler() is PHP runtime machinery; no Rust equivalent.
todo!()
}
@@ -29,17 +29,24 @@ impl Drop for TearDown {
#[ignore = "depends on PHP runtime routing an undefined-index notice through set_error_handler; no Rust equivalent for $array['baz'] triggering ErrorHandler::handle"]
#[test]
fn test_error_handler_capture_notice() {
+ // TODO(phase-d): depends on PHP runtime routing an undefined-index notice through
+ // set_error_handler; no Rust equivalent for $array['baz'] triggering
+ // ErrorHandler::handle.
todo!()
}
#[ignore = "depends on PHP runtime emitting a TypeError/warning from array_merge([], 'string') via set_error_handler; no Rust equivalent"]
#[test]
fn test_error_handler_capture_warning() {
+ // TODO(phase-d): depends on PHP runtime emitting a TypeError/warning from
+ // array_merge([], 'string') via set_error_handler; no Rust equivalent.
todo!()
}
#[ignore = "depends on the PHP @ error-suppression operator and trigger_error routing through set_error_handler; no Rust equivalent"]
#[test]
fn test_error_handler_respects_at_operator() {
+ // TODO(phase-d): depends on the PHP @ error-suppression operator and trigger_error
+ // routing through set_error_handler; no Rust equivalent.
todo!()
}