From 88e8bef6b42bbd1a831e5c8a37e0567251df83bb Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 24 Jan 2018 13:21:47 +0100 Subject: initial work, only PoC for now --- tests/001.phpt | 10 ++++++++++ tests/002.phpt | 29 +++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 tests/001.phpt create mode 100644 tests/002.phpt (limited to 'tests') diff --git a/tests/001.phpt b/tests/001.phpt new file mode 100644 index 0000000..69f6aff --- /dev/null +++ b/tests/001.phpt @@ -0,0 +1,10 @@ +--TEST-- +Check for rpminfo presence +--SKIPIF-- + +--FILE-- + +--EXPECT-- +rpminfo extension is available diff --git a/tests/002.phpt b/tests/002.phpt new file mode 100644 index 0000000..513339c --- /dev/null +++ b/tests/002.phpt @@ -0,0 +1,29 @@ +--TEST-- +Check for rpmvercmp function +--SKIPIF-- + +--FILE-- + +Done +--EXPECT-- +int(-1) +int(1) +int(0) + +Warning: rpmvercmp() expects exactly 2 parameters, 0 given in /work/GIT/php-rpminfo/tests/002.php on line 6 +NULL + +Warning: rpmvercmp() expects exactly 2 parameters, 1 given in /work/GIT/php-rpminfo/tests/002.php on line 7 +NULL + +Warning: rpmvercmp() expects exactly 2 parameters, 3 given in /work/GIT/php-rpminfo/tests/002.php on line 8 +NULL +Done -- cgit