Skip to content

Commit

Permalink
Add extension test
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc committed Aug 12, 2024
1 parent c53f1d9 commit 17c27cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/globals/ext-tests/iconv.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

declare(strict_types=1);

assert(function_exists('iconv'));
assert(iconv('UTF-8', 'CP437', 'foo') === 'foo');
2 changes: 1 addition & 1 deletion src/globals/test-extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
$extensions = match (PHP_OS_FAMILY) {
'Linux', 'Darwin' => 'iconv',
'Windows' => 'amqp,apcu',
'Windows' => 'amqp,apcu,iconv',
};

// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).
Expand Down

0 comments on commit 17c27cb

Please sign in to comment.