mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
cs-fix
This commit is contained in:
parent
648c43cc7f
commit
566f6980ca
@ -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]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user