blob: 7877b3ceb7df8a71fd917c51e2ab86e08c492886 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
//! 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!()
}
};
}
stub!(test_global);
stub!(test_cannot_create_home);
stub!(test_global_show);
stub!(test_global_show_without_packages);
stub!(test_global_require);
stub!(test_global_update);
stub!(test_global_changes_directory);
stub!(test_global_missing_command_name);
|