From f639066eaf49325fdbf1b697fb24c187b2d5038e Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 26 Jun 2026 01:01:53 +0900 Subject: test(command): port command test bodies from Composer PHPUnit suite Faithfully port repository, base_dependency, exec, dump_autoload, run_script, licenses command tests from their PHP counterparts (expected values verbatim). Newly passing: repository (6), base_dependency (5), exec (2). Tests whose ported bodies hit a genuine unported path (HTTP/curl, event-dispatch re-entrancy, spl_autoload_register, php_uname, instance_of, un-delimited Preg patterns, Config::merge dropping list repos) keep faithful bodies but stay #[ignore] with precise reasons; no assertions weakened. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../shirabe/tests/command/licenses_command_test.rs | 24 ++++++++++++---------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'crates/shirabe/tests/command/licenses_command_test.rs') diff --git a/crates/shirabe/tests/command/licenses_command_test.rs b/crates/shirabe/tests/command/licenses_command_test.rs index f680621..80708f6 100644 --- a/crates/shirabe/tests/command/licenses_command_test.rs +++ b/crates/shirabe/tests/command/licenses_command_test.rs @@ -79,9 +79,9 @@ fn assert_lines(display: &str, expected: &[Vec<&str>]) { #[test] #[serial] -#[ignore = "renders the text-format Table, which reaches shirabe_php_shim::instance_of (var.rs todo!()); \ - PhpMixed::Object carries no runtime class tag, so the Symfony Table helper cannot \ - distinguish TableSeparator/TableCell rows yet"] +#[ignore = "renders the text-format Table, which reaches shirabe_php_shim::instance_of \ + (var.rs:191 todo!()); PhpMixed::Object carries no runtime class tag, so the Symfony \ + Table helper cannot distinguish TableSeparator/TableCell rows yet"] fn test_basic_run() { let _tear_down = set_up(); @@ -111,8 +111,8 @@ fn test_basic_run() { #[test] #[serial] -#[ignore = "renders the text-format Table, which reaches shirabe_php_shim::instance_of (var.rs todo!()); \ - see test_basic_run"] +#[ignore = "renders the text-format Table, which reaches shirabe_php_shim::instance_of \ + (var.rs:191 todo!()); see test_basic_run"] fn test_no_dev() { let _tear_down = set_up(); @@ -180,8 +180,10 @@ fn test_format_json() { #[test] #[serial] -#[ignore = "renders a Table via SymfonyStyle::table, which reaches shirabe_php_shim::instance_of \ - (var.rs todo!()); see test_basic_run"] +#[ignore = "SymfonyStyle::table reaches \ + symfony_style.rs:445 is_console_output_interface() todo!() (downcasting \ + dyn OutputInterface to dyn ConsoleOutputInterface is not expressible with the current \ + trait design)"] fn test_format_summary() { let _tear_down = set_up(); @@ -244,8 +246,8 @@ fn test_format_unknown() { #[test] #[serial] -#[ignore = "renders the text-format Table, which reaches shirabe_php_shim::instance_of (var.rs todo!()); \ - see test_basic_run"] +#[ignore = "renders the text-format Table, which reaches shirabe_php_shim::instance_of \ + (var.rs:191 todo!()); see test_basic_run"] fn test_locked() { let _tear_down = set_up(); @@ -278,8 +280,8 @@ fn test_locked() { #[test] #[serial] -#[ignore = "renders the text-format Table, which reaches shirabe_php_shim::instance_of (var.rs todo!()); \ - see test_basic_run"] +#[ignore = "renders the text-format Table, which reaches shirabe_php_shim::instance_of \ + (var.rs:191 todo!()); see test_basic_run"] fn test_locked_no_dev() { let _tear_down = set_up(); -- cgit v1.3.1