Skip to content

Commit

Permalink
Remove redundant files and add tests for #504 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc committed Jul 19, 2024
1 parent fbae002 commit ca6d5da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SPC/builder/linux/library/icu.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace SPC\builder\linux\library;

use SPC\store\FileSystem;

class icu extends LinuxLibraryBase
{
use \SPC\builder\unix\library\icu;
Expand Down Expand Up @@ -36,5 +38,6 @@ protected function build(): void
->exec('make install');

$this->patchPkgconfPrefix(['icu-i18n.pc', 'icu-io.pc', 'icu-uc.pc'], PKGCONF_PATCH_PREFIX);
FileSystem::removeDir(BUILD_LIB_PATH . '/icu');
}
}
3 changes: 3 additions & 0 deletions src/SPC/builder/macos/library/icu.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace SPC\builder\macos\library;

use SPC\store\FileSystem;

class icu extends MacOSLibraryBase
{
use \SPC\builder\unix\library\icu;
Expand All @@ -20,5 +22,6 @@ protected function build(): void
->exec('make install');

$this->patchPkgconfPrefix(['icu-i18n.pc', 'icu-io.pc', 'icu-uc.pc'], PKGCONF_PATCH_PREFIX);
FileSystem::removeDir(BUILD_LIB_PATH . '/icu');
}
}
3 changes: 3 additions & 0 deletions src/globals/ext-tests/intl.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
declare(strict_types=1);

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');

0 comments on commit ca6d5da

Please sign in to comment.