diff options
Diffstat (limited to 'Examples/test-suite/php/casts_runme.php')
| -rw-r--r-- | Examples/test-suite/php/casts_runme.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Examples/test-suite/php/casts_runme.php b/Examples/test-suite/php/casts_runme.php new file mode 100644 index 0000000..10522dc --- /dev/null +++ b/Examples/test-suite/php/casts_runme.php @@ -0,0 +1,18 @@ +<?php + +require "tests.php"; +require "casts.php"; + +// No new functions +check::functions(array(new_a,a_hello,new_b)); +// No new classes +check::classes(array(A,B)); +// now new vars +check::globals(array()); + +# Make sure $b inherites hello() from class A +$b=new B(); +$b->hello(); + +check::done(); +?> |
