diff options
Diffstat (limited to 'crates/shirabe/tests/command/global_command_test.rs')
| -rw-r--r-- | crates/shirabe/tests/command/global_command_test.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/crates/shirabe/tests/command/global_command_test.rs b/crates/shirabe/tests/command/global_command_test.rs index 274f5cf..7877b3c 100644 --- a/crates/shirabe/tests/command/global_command_test.rs +++ b/crates/shirabe/tests/command/global_command_test.rs @@ -1,10 +1,27 @@ //! ref: composer/tests/Composer/Test/Command/GlobalCommandTest.php +use shirabe::util::platform::Platform; + +fn tear_down() { + Platform::clear_env("COMPOSER_HOME"); + Platform::clear_env("COMPOSER"); +} + +struct TearDown; + +impl Drop for TearDown { + fn drop(&mut self) { + tear_down(); + } +} + macro_rules! stub { ($name:ident) => { #[test] #[ignore = "requires the ApplicationTester/initTempComposer harness, which is not yet ported"] fn $name() { + let _tear_down = TearDown; + todo!() } }; |
