From 7f72398eb690a143fb928068cb61dfaa23c22d7a Mon Sep 17 00:00:00 2001 From: Nihal Date: Mon, 8 May 2017 12:02:18 +0530 Subject: [PATCH] Add tests for PHP pragma version to both PHP5 and PHP7. Pragma version to specify version of PHP5 and PHP7 extensions. See issue #360. --- Examples/test-suite/php/Makefile.in | 1 + Examples/test-suite/php/php_pragma_runme.php | 12 ++++++++++++ Examples/test-suite/php5/Makefile.in | 1 + Examples/test-suite/php5/php_pragma_runme.php | 12 ++++++++++++ Examples/test-suite/php_pragma.i | 6 ++++++ 5 files changed, 32 insertions(+) create mode 100644 Examples/test-suite/php/php_pragma_runme.php create mode 100644 Examples/test-suite/php5/php_pragma_runme.php create mode 100644 Examples/test-suite/php_pragma.i diff --git a/Examples/test-suite/php/Makefile.in b/Examples/test-suite/php/Makefile.in index c554e2b17..64f0d1f9d 100644 --- a/Examples/test-suite/php/Makefile.in +++ b/Examples/test-suite/php/Makefile.in @@ -14,6 +14,7 @@ CPP_TEST_CASES += \ li_factory \ php_iterator \ php_namewarn_rename \ + php_pragma \ include $(srcdir)/../common.mk diff --git a/Examples/test-suite/php/php_pragma_runme.php b/Examples/test-suite/php/php_pragma_runme.php new file mode 100644 index 000000000..ae92f6818 --- /dev/null +++ b/Examples/test-suite/php/php_pragma_runme.php @@ -0,0 +1,12 @@ +getVersion(),"1.5==version(php_pragma)"); + +check::done(); + +?> + diff --git a/Examples/test-suite/php5/Makefile.in b/Examples/test-suite/php5/Makefile.in index 391ca2c53..179ce59d6 100644 --- a/Examples/test-suite/php5/Makefile.in +++ b/Examples/test-suite/php5/Makefile.in @@ -14,6 +14,7 @@ CPP_TEST_CASES += \ li_factory \ php_iterator \ php_namewarn_rename \ + php_pragma \ include $(srcdir)/../common.mk diff --git a/Examples/test-suite/php5/php_pragma_runme.php b/Examples/test-suite/php5/php_pragma_runme.php new file mode 100644 index 000000000..ae92f6818 --- /dev/null +++ b/Examples/test-suite/php5/php_pragma_runme.php @@ -0,0 +1,12 @@ +getVersion(),"1.5==version(php_pragma)"); + +check::done(); + +?> + diff --git a/Examples/test-suite/php_pragma.i b/Examples/test-suite/php_pragma.i new file mode 100644 index 000000000..4d14f1357 --- /dev/null +++ b/Examples/test-suite/php_pragma.i @@ -0,0 +1,6 @@ +// Test pragma of php - pragma version. + +%module php_pragma + +%pragma(php) version= "1.5" +