aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/repository/artifact_repository_test.rs
blob: 5e70650b6086652f1d7308c5484c004cb08b93ef (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
//! ref: composer/tests/Composer/Test/Repository/ArtifactRepositoryTest.php

// ArtifactRepository::getPackages scans the fixture directory and opens each archive via
// ZipArchive / PharData, both of which are todo!() in the php-shim.

use shirabe_php_shim::extension_loaded;

fn set_up() {
    if !extension_loaded("zip") {
        // markTestSkipped('You need the zip extension to run this test.')
        todo!()
    }
}

#[test]
#[ignore = "ArtifactRepository reads archives via ZipArchive/PharData, which are todo!() in the php-shim"]
fn test_extracts_configs_from_zip_archives() {
    set_up();
    todo!()
}

#[test]
#[ignore = "ArtifactRepository reads archives via ZipArchive/PharData, which are todo!() in the php-shim"]
fn test_absolute_repo_url_creates_absolute_url_packages() {
    set_up();
    todo!()
}

#[test]
#[ignore = "ArtifactRepository reads archives via ZipArchive/PharData, which are todo!() in the php-shim"]
fn test_relative_repo_url_creates_relative_url_packages() {
    set_up();
    todo!()
}