From 47f441700c26c93a864889229570ad77cee7b91b Mon Sep 17 00:00:00 2001 From: Oleg Grenrus Date: Sun, 10 Nov 2013 05:26:37 -0500 Subject: [PATCH] Add APCu test --- README.md | 13 +++++++++++++ tests/igbinary_045.phpt | 1 + tests/igbinary_045b.phpt | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 tests/igbinary_045b.phpt diff --git a/README.md b/README.md index 4b4d6a0..56943b6 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,19 @@ option must be given to configure script: "--with-php-config=.../php-config5" 5. `make install` 6. igbinary.so is installed to the default extension directory +### To run APCu test + +``` +# go to modules directory +cd modules + +# ... and create symlink to apcu extension +# it will be loaded during test suite +/opt/lib/php/extensions/no-debug-non-zts-20121212/apcu.so +``` + +Similar approach should work for APC. + Bugs & Contributions -------------------- diff --git a/tests/igbinary_045.phpt b/tests/igbinary_045.phpt index 6d8b4c2..f88d909 100644 --- a/tests/igbinary_045.phpt +++ b/tests/igbinary_045.phpt @@ -12,6 +12,7 @@ if (version_compare($ext->getVersion(), '3.1.7', '<')) { } --INI-- +extension=apc.so apc.enable_cli=1 apc.serializer=igbinary --FILE-- diff --git a/tests/igbinary_045b.phpt b/tests/igbinary_045b.phpt new file mode 100644 index 0000000..7e9d3a2 --- /dev/null +++ b/tests/igbinary_045b.phpt @@ -0,0 +1,36 @@ +--TEST-- +APCu serializer registration +--SKIPIF-- +getVersion(), '4.0.2', '<')) { + echo "skip require APCu version 4.0.2 or above"; +} + +--INI-- +extension=apcu.so +apc.enable_cli=1 +apc.serializer=igbinary +--FILE-- + + int(10) +}