mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 01:15:37 +08:00
cs-fix
This commit is contained in:
@@ -104,7 +104,7 @@ class DownloaderTest extends TestCase
|
|||||||
{
|
{
|
||||||
$filelist = Downloader::getFromFileList('fake-filelist', [
|
$filelist = Downloader::getFromFileList('fake-filelist', [
|
||||||
'url' => 'https://fakecmd.com/filelist',
|
'url' => 'https://fakecmd.com/filelist',
|
||||||
'regex' => '/href="(?<file>filelist-(?<version>[^"]+)\\.tar\\.xz)"/',
|
'regex' => '/href="(?<file>filelist-(?<version>[^"]+)\.tar\.xz)"/',
|
||||||
]);
|
]);
|
||||||
$this->assertIsArray($filelist);
|
$this->assertIsArray($filelist);
|
||||||
$this->assertEquals('filelist-4.7.0.tar.xz', $filelist[1]);
|
$this->assertEquals('filelist-4.7.0.tar.xz', $filelist[1]);
|
||||||
|
|||||||
Reference in New Issue
Block a user