blob: 7b3b228dbd661ce9b2d2e00998e297e279aa711c (
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
|
//! ref: composer/tests/Composer/Test/AllFunctionalTest.php
// These build the composer.phar and run the .test integration fixtures by invoking the
// composer binary as a subprocess; the phar build and functional-test harness are not
// ported.
// setUp only does cwd management (chdir into Fixtures/functional), which is intentionally
// not ported, so it has no portable body.
// The chdir back to oldcwd is cwd management (not ported); the removeDirectory of testDir
// targets a path produced by the unported functional-test run.
fn tear_down() {
todo!()
}
struct TearDown;
impl Drop for TearDown {
fn drop(&mut self) {
tear_down();
}
}
macro_rules! stub {
($name:ident) => {
#[test]
#[ignore = "not yet ported (builds composer.phar and runs the functional .test fixtures via the binary)"]
fn $name() {
let _tear_down = TearDown;
todo!()
}
};
}
stub!(test_build_phar);
stub!(test_integration);
|