Author: Sebastian Bergmann
Date: 2007-05-04 11:57:43 +0200 (Fri, 04 May 2007)
New Revision: 5041
Log:
- Add tests.
Modified:
trunk/Workflow/tests/node_test.php
Modified: trunk/Workflow/tests/node_test.php
===================================================================
--- trunk/Workflow/tests/node_test.php 2007-05-04 09:57:38 UTC (rev 5040)
+++ trunk/Workflow/tests/node_test.php 2007-05-04 09:57:43 UTC (rev 5041)
@@ -120,6 +120,48 @@
$this->fail();
}
+ public function testInputConstructor()
+ {
+ try
+ {
+ $input = new ezcWorkflowNodeInput( null );
+ }
+ catch ( InvalidArgumentException $e )
+ {
+ return;
+ }
+
+ $this->fail();
+ }
+
+ public function testInputConstructor2()
+ {
+ try
+ {
+ $input = new ezcWorkflowNodeInput( array( 'foo' => new StdClass )
);
+ }
+ catch ( InvalidArgumentException $e )
+ {
+ return;
+ }
+
+ $this->fail();
+ }
+
+ public function testInputConstructor3()
+ {
+ try
+ {
+ $input = new ezcWorkflowNodeInput( array( new StdClass ) );
+ }
+ catch ( InvalidArgumentException $e )
+ {
+ return;
+ }
+
+ $this->fail();
+ }
+
public function testGetInNodes()
{
$this->setUpStartEnd();
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components