diff options
author | Remi Collet <remi@remirepo.net> | 2020-04-06 16:25:35 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-04-06 16:25:35 +0200 |
commit | 1e01976460c4e6b10de9a26e486ab2b2871cbff4 (patch) | |
tree | 4e8130f1fb41d92b544b7799bb7a7404676ccc42 /tests/007-rpmdbinfo.phpt | |
parent | 3e69ef1a847841608eacdd8683ff549562be55c4 (diff) |
add rpmaddtag() function
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 index 4d142c7..4a977d1 100644 --- a/tests/007-rpmdbinfo.phpt +++ b/tests/007-rpmdbinfo.phpt @@ -6,6 +6,10 @@ Check for rpmdbinfo function on Name <?php var_dump(rpmdbinfo('doesntexistsinrpmdb')); var_dump(rpmdbinfo('bash')); +var_dump(rpmaddtag(RPMTAG_INSTALLTIME)); +var_dump(rpmaddtag(RPMTAG_BUILDTIME)); +var_dump(rpmaddtag(RPMTAG_INSTALLTIME)); +var_dump(rpmdbinfo('bash')); ?> Done --EXPECTF-- @@ -25,4 +29,26 @@ array(1) { string(%d) "%s" } } +bool(true) +bool(true) +bool(false) +array(1) { + [0]=> + array(7) { + ["Name"]=> + string(4) "bash" + ["Version"]=> + string(%d) "%s" + ["Release"]=> + string(%d) "%s" + ["Summary"]=> + string(26) "The GNU Bourne Again shell" + ["Buildtime"]=> + int(%d) + ["Installtime"]=> + int(%d) + ["Arch"]=> + string(%d) "%s" + } +} Done |