Author: sb
Date: Sun Jul 8 19:23:01 2007
New Revision: 5709
Log:
- Add some more tests.
Modified:
trunk/Workflow/tests/execution_test.php
Modified: trunk/Workflow/tests/execution_test.php
==============================================================================
--- trunk/Workflow/tests/execution_test.php [iso-8859-1] (original)
+++ trunk/Workflow/tests/execution_test.php [iso-8859-1] Sun Jul 8 19:23:01
2007
@@ -412,6 +412,25 @@
$this->fail();
}
+ public function testEndNonExistingThread()
+ {
+ try
+ {
+ $this->execution->endThread( 0 );
+ }
+ catch ( ezcWorkflowExecutionException $e )
+ {
+ return;
+ }
+
+ $this->fail();
+ }
+
+ public function testGetSiblingsForNonExistingThread()
+ {
+ $this->assertFalse( $this->execution->getNumSiblingThreads( 0 ) );
+ }
+
public function testListener()
{
$listener = $this->getMock( 'ezcWorkflowExecutionListener' );
@@ -437,6 +456,21 @@
try
{
$execution = new ezcWorkflowExecutionNonInteractive;
+ $execution->workflow = new StdClass;
+ }
+ catch ( ezcBaseValueException $e )
+ {
+ return;
+ }
+
+ $this->fail();
+ }
+
+ public function testProperties3()
+ {
+ try
+ {
+ $execution = new ezcWorkflowExecutionNonInteractive;
$foo = $execution->foo;
}
catch ( ezcBasePropertyNotFoundException $e )
@@ -447,7 +481,7 @@
$this->fail();
}
- public function testProperties3()
+ public function testProperties4()
{
$this->setUpStartEnd();
@@ -464,7 +498,7 @@
$this->fail();
}
- public function testProperties4()
+ public function testProperties5()
{
try
{
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components