[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
16
Examples/test-suite/php/overload_extend2_runme.php
Normal file
16
Examples/test-suite/php/overload_extend2_runme.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
require "tests.php";
|
||||
|
||||
$f = new Foo();
|
||||
check::equal($f->test(3), 1, '$f->test(3)');
|
||||
check::equal($f->test("hello"), 2, '$f->test("hello")');
|
||||
check::equal($f->test(3.5, 2.5), 3, '$f->test(3.5, 2.5)');
|
||||
check::equal($f->test("hello", 20), 1020, '$f->test("hello", 20)');
|
||||
check::equal($f->test("hello", 20, 100), 120, '$f->test("hello", 20, 100)');
|
||||
|
||||
// C default args
|
||||
check::equal($f->test($f), 30, '$f->test(f)');
|
||||
check::equal($f->test($f, 100), 120, '$f->test(f, 100)');
|
||||
check::equal($f->test($f, 100, 200), 300, '$f->test(f, 100, 200)');
|
||||
|
||||
check::done();
|
||||
Loading…
Add table
Add a link
Reference in a new issue