CHANGES.current entry and regression test for previous commit
This commit is contained in:
parent
0c56d0cb72
commit
0ca47dd7cc
4 changed files with 49 additions and 0 deletions
18
Examples/test-suite/php/newobject3_runme.php
Normal file
18
Examples/test-suite/php/newobject3_runme.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
require "tests.php";
|
||||
require "newobject3.php";
|
||||
|
||||
$factory = new factory();
|
||||
|
||||
check::classname("product", $factory->create(7));
|
||||
check::classname("product", $factory->create(7, 6));
|
||||
check::classname("product", $factory->create("test"));
|
||||
check::classname("product", $factory->create("test", 2));
|
||||
|
||||
check::isnull($factory->create(0), "create(0) should be NULL");
|
||||
check::isnull($factory->create(7, -1), "create(7, -1) should be NULL");
|
||||
check::isnull($factory->create(0, -1), "create(0, -1) should be NULL");
|
||||
check::isnull($factory->create("bad", -1), "create(\"bad\", -1) should be NULL");
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue