aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/command/licenses_command_test.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-26 01:01:53 +0900
committernsfisis <nsfisis@gmail.com>2026-06-26 01:01:53 +0900
commitf639066eaf49325fdbf1b697fb24c187b2d5038e (patch)
tree7444d076aec641916766c29e8ced5cb6177c2a15 /crates/shirabe/tests/command/licenses_command_test.rs
parent5f9778e6988b43a759d976322dd73dcac7ff927d (diff)
downloadphp-shirabe-f639066eaf49325fdbf1b697fb24c187b2d5038e.tar.gz
php-shirabe-f639066eaf49325fdbf1b697fb24c187b2d5038e.tar.zst
php-shirabe-f639066eaf49325fdbf1b697fb24c187b2d5038e.zip
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/command/licenses_command_test.rs')
-rw-r--r--crates/shirabe/tests/command/licenses_command_test.rs24
1 files changed, 13 insertions, 11 deletions
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();