Skip to content

Commit 193cdb4

Browse files
committed
fix: added missing phpt test for arrow extension
1 parent 45097ac commit 193cdb4

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
--TEST--
2+
Extension phpinfo shows version and library info
3+
--SKIPIF--
4+
<?php if (!extension_loaded("arrow")) die("skip"); ?>
5+
--FILE--
6+
<?php
7+
8+
ob_start();
9+
phpinfo(INFO_MODULES);
10+
$info = ob_get_clean();
11+
12+
echo (str_contains($info, 'arrow.enabled') ? "arrow.enabled found" : "ERROR: arrow.enabled missing") . "\n";
13+
echo (str_contains($info, 'arrow.extension_version') ? "arrow.extension_version found" : "ERROR: arrow.extension_version missing") . "\n";
14+
echo (str_contains($info, 'arrow.library_version') ? "arrow.library_version found" : "ERROR: arrow.library_version missing") . "\n";
15+
echo (str_contains($info, 'arrow.parquet_library_version') ? "arrow.parquet_library_version found" : "ERROR: arrow.parquet_library_version missing") . "\n";
16+
?>
17+
--EXPECT--
18+
arrow.enabled found
19+
arrow.extension_version found
20+
arrow.library_version found
21+
arrow.parquet_library_version found

0 commit comments

Comments
 (0)