aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/installer/binary_installer_test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/tests/installer/binary_installer_test.rs')
-rw-r--r--crates/shirabe/tests/installer/binary_installer_test.rs20
1 files changed, 20 insertions, 0 deletions
diff --git a/crates/shirabe/tests/installer/binary_installer_test.rs b/crates/shirabe/tests/installer/binary_installer_test.rs
index 81df0ea..0a22243 100644
--- a/crates/shirabe/tests/installer/binary_installer_test.rs
+++ b/crates/shirabe/tests/installer/binary_installer_test.rs
@@ -1,5 +1,25 @@
//! ref: composer/tests/Composer/Test/Installer/BinaryInstallerTest.php
+/// Creates the root/vendor/bin temp directories and a mocked IO. The temp-dir
+/// helpers (`getUniqueTmpDirectory`/`ensureDirectoryExistsAndClear`) and the IO
+/// mock are not available here, so this remains a stub.
+fn set_up() {
+ todo!()
+}
+
+/// Removes the root dir created by `set_up`, which is itself a stub.
+fn tear_down() {
+ todo!()
+}
+
+struct TearDown;
+
+impl Drop for TearDown {
+ fn drop(&mut self) {
+ tear_down();
+ }
+}
+
// This installs a PHP binary and then executes it via ProcessExecutor, asserting the
// program's output. It needs a real PHP runtime, the binary-proxy generation, and a
// mocked Package's getBinaries(), none of which are available here.