[php] Add missing runmes for overload_* testcases
This commit is contained in:
parent
7a9bf3307f
commit
1b22fef8ad
9 changed files with 363 additions and 0 deletions
11
Examples/test-suite/php/overload_extend_c_runme.php
Normal file
11
Examples/test-suite/php/overload_extend_c_runme.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
require "tests.php";
|
||||
|
||||
$f = new Foo();
|
||||
check::equal($f->test(), 0, '$f->test()');
|
||||
check::equal($f->test(3), 1, '$f->test(3)');
|
||||
check::equal($f->test("hello"), 2, '$f->test("hello")');
|
||||
check::equal($f->test(3.0, 2.0), 5.0, '$f->test(3, 2)');
|
||||
check::equal($f->test(3.0), 1003.0, '$f->test(3.0)');
|
||||
|
||||
check::done();
|
||||
Loading…
Add table
Add a link
Reference in a new issue