aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/autoload
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-16 16:26:21 +0900
committernsfisis <nsfisis@gmail.com>2026-08-16 17:34:46 +0900
commit494f79d0caf614325408d82d5c7a58f9e4396590 (patch)
tree5e6256fe40b650b44660cb43232e4da4a6140c29 /crates/shirabe/tests/autoload
parent7e7837a559310792dcf312e0c52857450ed781dc (diff)
downloadphp-shirabe-494f79d0caf614325408d82d5c7a58f9e4396590.tar.gz
php-shirabe-494f79d0caf614325408d82d5c7a58f9e4396590.tar.zst
php-shirabe-494f79d0caf614325408d82d5c7a58f9e4396590.zip
test: correct stale #[ignore] reasons
Running the ignored tests shows several reasons naming a blocker the test never reaches. The plugin hooks in all_functional_test do run, and what stops both cases is the worker's Composer\InstalledVersions; class_loader_test stops at include_file, not class_exists; auth_helper_test's wrapper is ported and the blocker is trigger_error; composerRequire is ported as __shirabe_composer_require. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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")