diff options
Diffstat (limited to 'tests/007-rpmdbinfo.phpt')
-rw-r--r-- | tests/007-rpmdbinfo.phpt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/007-rpmdbinfo.phpt b/tests/007-rpmdbinfo.phpt new file mode 100644 index 0000000..6ef5aa1 --- /dev/null +++ b/tests/007-rpmdbinfo.phpt @@ -0,0 +1,26 @@ +--TEST-- +Check for rpmdbinfo function +--SKIPIF-- +<?php if (!extension_loaded("rpminfo")) print "skip"; ?> +--FILE-- +<?php +var_dump(rpmdbinfo('doesntexistsinrpmdb')); +var_dump(rpmdbinfo('bash')); +?> +Done +--EXPECTF-- +bool(false) +array(1) { + [0]=> + array(4) { + ["Name"]=> + string(4) "bash" + ["Version"]=> + string(%d) "%s" + ["Release"]=> + string(%d) "%s" + ["Arch"]=> + string(%d) "%s" + } +} +Done |