aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-06 18:05:27 +0900
committernsfisis <nsfisis@gmail.com>2026-05-06 18:05:27 +0900
commit3d128352f93c4416d087069947920e9fa864df7d (patch)
tree52026a6ae07ad0dbc2a62e487dd4d9550992e3b8 /crates/mozart/tests
parent4a9aff1af9fc74d2928fe54210d6aad5f0afd0b7 (diff)
downloadphp-mozart-3d128352f93c4416d087069947920e9fa864df7d.tar.gz
php-mozart-3d128352f93c4416d087069947920e9fa864df7d.tar.zst
php-mozart-3d128352f93c4416d087069947920e9fa864df7d.zip
feat(core): port Factory::createComposer and AutoloadGenerator::dump
Add the Composer state-container types (LocalRepository, RepositoryManager, InstallationManager, AutoloadGenerator, AutoloadDumpOptions, PlatformRequirementFilter, Locker) plus the factory wiring that builds them from composer.json and vendor/composer/installed.json. AutoloadGenerator::dump lives in mozart-autoload as an extension trait so the orchestrating algorithm sits next to the classmap scanner while the state container stays in mozart-core. Rework dump-autoload to drive both, mirroring $composer->getAutoloadGenerator()->dump(...).
Diffstat (limited to 'crates/mozart/tests')
-rw-r--r--crates/mozart/tests/cli_dump_autoload.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/mozart/tests/cli_dump_autoload.rs b/crates/mozart/tests/cli_dump_autoload.rs
index ca592a3..8b7ccbf 100644
--- a/crates/mozart/tests/cli_dump_autoload.rs
+++ b/crates/mozart/tests/cli_dump_autoload.rs
@@ -1,7 +1,5 @@
mod common;
-use predicates::str::contains;
-
#[test]
fn test_dump_autoload_dry_run() {
let project = common::copy_fixture_to_temp("minimal");
@@ -11,8 +9,7 @@ fn test_dump_autoload_dry_run() {
.arg("--working-dir")
.arg(project.path())
.assert()
- .success()
- .stderr(contains("Dry run"));
+ .success();
}
#[test]