From 14edc26c8d01ec875810657e7f1c0da84d013043 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Sat, 17 Apr 2021 06:04:55 +1200 Subject: [PATCH] Add PHP run test for global_vars --- Examples/test-suite/global_vars.i | 4 +++ Examples/test-suite/php/global_vars_runme.php | 28 +++++++++++++++++++ Examples/test-suite/php/tests.php | 5 ++++ 3 files changed, 37 insertions(+) create mode 100644 Examples/test-suite/php/global_vars_runme.php diff --git a/Examples/test-suite/global_vars.i b/Examples/test-suite/global_vars.i index d562d1eaa..46133fed9 100644 --- a/Examples/test-suite/global_vars.i +++ b/Examples/test-suite/global_vars.i @@ -33,4 +33,8 @@ b = "string b"; x = 1234; } + + int read_x() { return x; } + + std::string read_b() { return b; } %} diff --git a/Examples/test-suite/php/global_vars_runme.php b/Examples/test-suite/php/global_vars_runme.php new file mode 100644 index 000000000..77fdec859 --- /dev/null +++ b/Examples/test-suite/php/global_vars_runme.php @@ -0,0 +1,28 @@ +