Skip to content

Commit ca6d5da

Browse files
committed
Remove redundant files and add tests for #504 bug
1 parent fbae002 commit ca6d5da

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/SPC/builder/linux/library/icu.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace SPC\builder\linux\library;
66

7+
use SPC\store\FileSystem;
8+
79
class icu extends LinuxLibraryBase
810
{
911
use \SPC\builder\unix\library\icu;
@@ -36,5 +38,6 @@ protected function build(): void
3638
->exec('make install');
3739

3840
$this->patchPkgconfPrefix(['icu-i18n.pc', 'icu-io.pc', 'icu-uc.pc'], PKGCONF_PATCH_PREFIX);
41+
FileSystem::removeDir(BUILD_LIB_PATH . '/icu');
3942
}
4043
}

src/SPC/builder/macos/library/icu.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
namespace SPC\builder\macos\library;
66

7+
use SPC\store\FileSystem;
8+
79
class icu extends MacOSLibraryBase
810
{
911
use \SPC\builder\unix\library\icu;
@@ -20,5 +22,6 @@ protected function build(): void
2022
->exec('make install');
2123

2224
$this->patchPkgconfPrefix(['icu-i18n.pc', 'icu-io.pc', 'icu-uc.pc'], PKGCONF_PATCH_PREFIX);
25+
FileSystem::removeDir(BUILD_LIB_PATH . '/icu');
2326
}
2427
}

src/globals/ext-tests/intl.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
declare(strict_types=1);
44

55
assert(class_exists(NumberFormatter::class));
6+
assert(function_exists('locale_get_default'));
7+
$fmt = new NumberFormatter('de-DE', NumberFormatter::DECIMAL);
8+
assert(strval($fmt->parse('1.100')) === '1100');

0 commit comments

Comments
 (0)