aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/autoload/class_loader_test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/tests/autoload/class_loader_test.rs')
-rw-r--r--crates/shirabe/tests/autoload/class_loader_test.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/crates/shirabe/tests/autoload/class_loader_test.rs b/crates/shirabe/tests/autoload/class_loader_test.rs
index 66cc3e8a..582e24fa 100644
--- a/crates/shirabe/tests/autoload/class_loader_test.rs
+++ b/crates/shirabe/tests/autoload/class_loader_test.rs
@@ -2,12 +2,11 @@
use shirabe::autoload::class_loader::ClassLoader;
-// In PHP, loadClass() includes the matching .php fixture and the assertion checks
-// class_exists(). There is no equivalent runtime notion of loading and defining a
-// class in Rust, so this case cannot be ported faithfully.
#[test]
#[ignore = "depends on PHP runtime class_exists() to verify loadClass defined a class; no Rust equivalent"]
fn test_load_class() {
+ // TODO(phase-d): loadClass() include()s a fixture and PHPUnit asserts via class_exists();
+ // Rust has no equivalent of runtime class definition/loading.
todo!()
}
@@ -17,10 +16,10 @@ fn test_get_prefixes_with_no_psr0_configuration() {
assert!(loader.get_prefixes().is_empty());
}
-// In PHP this serializes the loader and unserializes it, then compares every getter.
-// PHP serialize()/unserialize() has no Rust equivalent here.
#[test]
#[ignore = "depends on PHP serialize()/unserialize() round-trip of ClassLoader; no Rust equivalent"]
fn test_serializability() {
+ // TODO(phase-d): serializes/unserializes the ClassLoader and compares every getter; PHP
+ // serialize()/unserialize() has no Rust equivalent here.
todo!()
}