mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
Remove redundant files and add tests for #504 bug
This commit is contained in:
parent
fbae0021a3
commit
ca6d5da10f
@ -4,6 +4,8 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace SPC\builder\linux\library;
|
namespace SPC\builder\linux\library;
|
||||||
|
|
||||||
|
use SPC\store\FileSystem;
|
||||||
|
|
||||||
class icu extends LinuxLibraryBase
|
class icu extends LinuxLibraryBase
|
||||||
{
|
{
|
||||||
use \SPC\builder\unix\library\icu;
|
use \SPC\builder\unix\library\icu;
|
||||||
@ -36,5 +38,6 @@ class icu extends LinuxLibraryBase
|
|||||||
->exec('make install');
|
->exec('make install');
|
||||||
|
|
||||||
$this->patchPkgconfPrefix(['icu-i18n.pc', 'icu-io.pc', 'icu-uc.pc'], PKGCONF_PATCH_PREFIX);
|
$this->patchPkgconfPrefix(['icu-i18n.pc', 'icu-io.pc', 'icu-uc.pc'], PKGCONF_PATCH_PREFIX);
|
||||||
|
FileSystem::removeDir(BUILD_LIB_PATH . '/icu');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,6 +4,8 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace SPC\builder\macos\library;
|
namespace SPC\builder\macos\library;
|
||||||
|
|
||||||
|
use SPC\store\FileSystem;
|
||||||
|
|
||||||
class icu extends MacOSLibraryBase
|
class icu extends MacOSLibraryBase
|
||||||
{
|
{
|
||||||
use \SPC\builder\unix\library\icu;
|
use \SPC\builder\unix\library\icu;
|
||||||
@ -20,5 +22,6 @@ class icu extends MacOSLibraryBase
|
|||||||
->exec('make install');
|
->exec('make install');
|
||||||
|
|
||||||
$this->patchPkgconfPrefix(['icu-i18n.pc', 'icu-io.pc', 'icu-uc.pc'], PKGCONF_PATCH_PREFIX);
|
$this->patchPkgconfPrefix(['icu-i18n.pc', 'icu-io.pc', 'icu-uc.pc'], PKGCONF_PATCH_PREFIX);
|
||||||
|
FileSystem::removeDir(BUILD_LIB_PATH . '/icu');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,3 +3,6 @@
|
|||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
assert(class_exists(NumberFormatter::class));
|
assert(class_exists(NumberFormatter::class));
|
||||||
|
assert(function_exists('locale_get_default'));
|
||||||
|
$fmt = new NumberFormatter('de-DE', NumberFormatter::DECIMAL);
|
||||||
|
assert(strval($fmt->parse('1.100')) === '1100');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user