Fix newobject3 testcase
Fixes Octave problem which has a template called product.
This commit is contained in:
parent
e7f0c6d6ad
commit
08210236ef
5 changed files with 158 additions and 11 deletions
|
|
@ -5,10 +5,10 @@ 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::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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue