aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/tests/autoload')
-rw-r--r--crates/shirabe/tests/autoload/autoload_generator_test.rs2
-rw-r--r--crates/shirabe/tests/autoload/class_loader_test.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe/tests/autoload/autoload_generator_test.rs b/crates/shirabe/tests/autoload/autoload_generator_test.rs
index 4efcc7e0..0f1a42d2 100644
--- a/crates/shirabe/tests/autoload/autoload_generator_test.rs
+++ b/crates/shirabe/tests/autoload/autoload_generator_test.rs
@@ -1745,7 +1745,7 @@ fn test_exclude_from_classmap() {
}
#[test]
-#[ignore = "require autoload.php + function_exists() assertions are unportable (composer_require todo!())"]
+#[ignore = "asserts function_exists() after requiring the generated autoload.php inside the test process; there is no PHP interpreter to evaluate that file"]
fn test_files_autoload_order_by_dependencies() {
// TODO(php-runtime): PHP `require autoload.php` + function_exists() assertions have no Rust
// equivalent (no runtime PHP file loading/class definition).
diff --git a/crates/shirabe/tests/autoload/class_loader_test.rs b/crates/shirabe/tests/autoload/class_loader_test.rs
index 00cda87d..6e0d46dd 100644
--- a/crates/shirabe/tests/autoload/class_loader_test.rs
+++ b/crates/shirabe/tests/autoload/class_loader_test.rs
@@ -13,7 +13,7 @@ fn get_load_class_tests() -> Vec<&'static str> {
}
#[test]
-#[ignore = "shirabe_php_shim::class_exists models a fixed set of classes available in a PHP CLI environment; loadClass cannot add to it because including a PHP file does not define a class on the Rust side"]
+#[ignore = "loadClass reaches shirabe_php_shim::include_file, which is a todo!(): evaluating a PHP source file needs an interpreter. class_exists also models a fixed set of classes that loading a file cannot extend"]
fn test_load_class() {
let fixtures = std::path::Path::new(env!("CARGO_MANIFEST_DIR"))
.join("../../composer/tests/Composer/Test/Autoload/Fixtures")