From 0b1615d804c778516c8c9ed458b69d7a70aea5bb Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 18 Jun 2021 15:38:04 +0200 Subject: raise exception on bad parameter value with PHP 8 and bump version to 0.6 --- tests/012-rpmaddtag.phpt | 16 ++++++++++++++++ tests/013-rpmdbsearch-error.phpt | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 tests/012-rpmaddtag.phpt create mode 100644 tests/013-rpmdbsearch-error.phpt (limited to 'tests') diff --git a/tests/012-rpmaddtag.phpt b/tests/012-rpmaddtag.phpt new file mode 100644 index 0000000..bf371a4 --- /dev/null +++ b/tests/012-rpmaddtag.phpt @@ -0,0 +1,16 @@ +--TEST-- +Check for rpmaddtag parameter check +--SKIPIF-- + +--FILE-- +getMessage(); +} +?> +--EXPECTF-- +bool(true) +%A Unkown rpmtag%A diff --git a/tests/013-rpmdbsearch-error.phpt b/tests/013-rpmdbsearch-error.phpt new file mode 100644 index 0000000..4a61227 --- /dev/null +++ b/tests/013-rpmdbsearch-error.phpt @@ -0,0 +1,16 @@ +--TEST-- +Check for rpmdbinfo function +--SKIPIF-- + +--FILE-- +getMessage(); +} +?> +--EXPECTF-- +NULL +%A Unkown rpmmire%A -- cgit