We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93a227b commit a9e1327Copy full SHA for a9e1327
1 file changed
tests/mock/SPC_store.php
@@ -12,6 +12,15 @@
12
function f_exec(string $command, mixed &$output, mixed &$result_code): bool
13
{
14
$result_code = 0;
15
+ if (str_contains($command, 'https://api.github.com/repos/AOMediaCodec/libavif/releases/latest')) {
16
+ $output = explode("\n", json_encode([
17
+ 'tag_name' => 'v1.1.1',
18
+ 'tarball_url' => 'https://api.github.com/repos/AOMediaCodec/libavif/tarball/v1.1.1',
19
+ 'prerelease' => false,
20
+ 'draft' => false,
21
+ ]));
22
+ return true;
23
+ }
24
if (str_contains($command, 'https://api.github.com/repos/AOMediaCodec/libavif/releases')) {
25
$output = explode("\n", gzdecode(file_get_contents(__DIR__ . '/../assets/github_api_AOMediaCodec_libavif_releases.json.gz')));
26
return true;
0 commit comments