Skip to content

Commit

Permalink
Added test for empty array behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Jun 26, 2024
1 parent be4afc4 commit e54fd67
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/011.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--TEST--
Check for empty array
--SKIPIF--
<?php if (!extension_loaded("yaconf")) print "skip"; ?>
--INI--
yaconf.directory={PWD}/inis/011/
--FILE--
<?php
print_r(Yaconf::get('011'));
?>
--EXPECTF--
Array
(
[servers] => Array
(
[0] =>
)

)
1 change: 1 addition & 0 deletions tests/inis/011/011.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
servers[] =

0 comments on commit e54fd67

Please sign in to comment.