From 7bea9042a79d3cbfe31cc2595e8b8c6a3788ba15 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 00:51:34 +0900 Subject: test: port small leaf tests (config, filters, platform, formatter) Port DefaultConfigTest, IgnoreAll/IgnoreNothingPlatformRequirementFilterTest, PlatformTest, GitExcludeFilterTest, and HtmlOutputFormatterTest. Each PHP Test// maps to a single integration-test binary via tests//main.rs (the target is named after the directory) whose #[test] functions are collected from the module tree. Tests that exercise unported library behavior (regex backreferences, Preg::split, env expansion) are marked #[ignore]. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/tests/default_config_test.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'crates/shirabe/tests/default_config_test.rs') diff --git a/crates/shirabe/tests/default_config_test.rs b/crates/shirabe/tests/default_config_test.rs index 61e3a2d..032be0f 100644 --- a/crates/shirabe/tests/default_config_test.rs +++ b/crates/shirabe/tests/default_config_test.rs @@ -1 +1,10 @@ //! ref: composer/tests/Composer/Test/DefaultConfigTest.php + +use shirabe::config::Config; +use shirabe_php_shim::PhpMixed; + +#[test] +fn test_default_values_are_as_expected() { + let config = Config::new(true, None); + assert_eq!(config.get("disable-tls"), PhpMixed::Bool(false)); +} -- cgit v1.3.1