From 2d3eaa98c1022df06bf667b0284316d73b5e6f00 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 7 Nov 2017 09:02:35 +0100 Subject: [PATCH 2/2] add 3 real tests --- tests/cache.phpt | 23 +++++++++++++++++++++++ tests/file.phpt | 23 +++++++++++++++++++++++ tests/shm.phpt | 23 +++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 tests/cache.phpt create mode 100644 tests/file.phpt create mode 100644 tests/shm.phpt diff --git a/tests/cache.phpt b/tests/cache.phpt new file mode 100644 index 0000000..d6c5157 --- /dev/null +++ b/tests/cache.phpt @@ -0,0 +1,23 @@ +--TEST-- +DB access using cache method +--SKIPIF-- + +--FILE-- + +Done +--EXPECTF-- +bool(true) +bool(true) +string(2) "UK" +string(14) "UNITED KINGDOM" +NULL +Done diff --git a/tests/file.phpt b/tests/file.phpt new file mode 100644 index 0000000..6b6bc4c --- /dev/null +++ b/tests/file.phpt @@ -0,0 +1,23 @@ +--TEST-- +DB access using file method +--SKIPIF-- + +--FILE-- + +Done +--EXPECTF-- +bool(true) +bool(true) +string(2) "UK" +string(14) "UNITED KINGDOM" +NULL +Done diff --git a/tests/shm.phpt b/tests/shm.phpt new file mode 100644 index 0000000..056c1d4 --- /dev/null +++ b/tests/shm.phpt @@ -0,0 +1,23 @@ +--TEST-- +DB access using shared memory method +--SKIPIF-- + +--FILE-- + +Done +--EXPECTF-- +bool(true) +bool(true) +string(2) "UK" +string(14) "UNITED KINGDOM" +NULL +Done