Merge branch 'master' into gsoc2017-php7-classes-via-c-api
This commit is contained in:
commit
3e8373b09a
20 changed files with 76 additions and 20 deletions
|
|
@ -11,12 +11,20 @@ top_builddir = @top_builddir@
|
|||
|
||||
CPP_TEST_CASES += \
|
||||
callback \
|
||||
director_stl \
|
||||
exception_partial_info \
|
||||
inout \
|
||||
li_cdata_carrays_cpp \
|
||||
li_factory \
|
||||
php_iterator \
|
||||
php_namewarn_rename \
|
||||
php_pragma \
|
||||
prefix \
|
||||
|
||||
C_TEST_CASES += \
|
||||
li_cdata_carrays \
|
||||
multivalue \
|
||||
|
||||
include $(srcdir)/../common.mk
|
||||
|
||||
# Overridden variables here
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
require "tests.php";
|
||||
require "director_profile.php";
|
||||
|
||||
// New functions
|
||||
check::functions(array('b_fn','b_vfi','b_fi','b_fj','b_fk','b_fl','b_get_self','b_vfs','b_fs'));
|
||||
// No new functions
|
||||
check::functions(array());
|
||||
// New classes
|
||||
check::classes(array('A','B'));
|
||||
// No new vars
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@
|
|||
require "tests.php";
|
||||
require "director_stl.php";
|
||||
|
||||
// New functions
|
||||
check::functions(array('foo_bar','foo_ping','foo_pong','foo_tping','foo_tpong','foo_pident','foo_vident','foo_vsecond','foo_tpident','foo_tvident','foo_tvsecond','foo_vidents','foo_tvidents'));
|
||||
// No new functions
|
||||
check::functions(array());
|
||||
// New classes
|
||||
check::classes(array('Foo'));
|
||||
// No new vars
|
||||
|
|
|
|||
25
Examples/test-suite/php/multivalue_runme.php
Normal file
25
Examples/test-suite/php/multivalue_runme.php
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
require "tests.php";
|
||||
require "multivalue.php";
|
||||
|
||||
// New functions
|
||||
check::functions(array('divide_l','divide_v','divide_mv'));
|
||||
// New classes
|
||||
check::classes(array('multivalue'));
|
||||
// No new vars
|
||||
check::globals(array());
|
||||
|
||||
$r = multivalue::divide_l(37, 5);
|
||||
check::equal($r[0], 7, "Test divide_l quotient");
|
||||
check::equal($r[1], 2, "Test divide_l remainder");
|
||||
|
||||
$r = multivalue::divide_v(41, 7);
|
||||
check::equal($r[0], 5, "Test divide_v quotient");
|
||||
check::equal($r[1], 6, "Test divide_v remainder");
|
||||
|
||||
$r = multivalue::divide_mv(91, 13);
|
||||
check::equal($r[0], 7, "Test divide_mv quotient");
|
||||
check::equal($r[1], 0, "Test divide_mv remainder");
|
||||
|
||||
check::done();
|
||||
|
|
@ -6,7 +6,7 @@ require "sym.php";
|
|||
// No new functions
|
||||
check::functions(array());
|
||||
// New classes
|
||||
check::classes(array('flim','flam'));
|
||||
check::classes(array('Flim','Flam'));
|
||||
// No new vars
|
||||
check::globals(array());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue