diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-07-11 20:09:27 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-07-16 01:02:47 +0900 |
| commit | 6f55caac4e6e55661305311174e31ec2b0e375b6 (patch) | |
| tree | 7ae39ecfd175ccda96e970db348f00d0c6dc7c1a /crates/shirabe/tests/autoload/class_loader_test.rs | |
| parent | da751367b50ec4c680aa5f45d3ce0d192d647dbb (diff) | |
| download | php-shirabe-6f55caac4e6e55661305311174e31ec2b0e375b6.tar.gz php-shirabe-6f55caac4e6e55661305311174e31ec2b0e375b6.tar.zst php-shirabe-6f55caac4e6e55661305311174e31ec2b0e375b6.zip | |
test: update TODO reason for unported test cases
No test logic changes.
Diffstat (limited to 'crates/shirabe/tests/autoload/class_loader_test.rs')
| -rw-r--r-- | crates/shirabe/tests/autoload/class_loader_test.rs | 9 |
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!() } |
