19                include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
 
   23                require_once 
'./Services/WorkflowEngine/classes/workflows/class.ilEmptyWorkflow.php';
 
   27                require_once 
'./Services/WorkflowEngine/classes/nodes/class.ilBasicNode.php';
 
   31                $this->workflow->addNode($this->node);
 
   33                require_once 
'./Services/WorkflowEngine/classes/emitters/class.ilDataEmitter.php';
 
   42                        $ilSetting->delete(
'IL_PHPUNIT_TEST_MICROTIME');
 
   56                        'Construction failed with valid context passed to constructor.' 
   66                $actual = $emitter->getContext();
 
   69                if ($actual === $this->node)
 
   71                        $this->assertEquals($actual, $this->node);
 
   73                        $this->assertTrue(
false, 
'Context not identical.');
 
   80                require_once 
'./Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php';
 
   83                $target_node->addDetector($target_detector);
 
   88                $emitter->setTargetDetector($target_detector);
 
   91                $actual = $emitter->getTargetDetector();
 
   92                $this->assertEquals($target_detector, $actual);
 
   98                require_once 
'./Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php';
 
  101                $target_node->addDetector($target_detector);
 
  104                $emitter->setTargetDetector($target_detector);
 
  109                $actual = $target_detector->getDetectorState();
 
  110                $this->assertTrue($actual);
 
An exception for terminatinating execution or to throw for unit testing.
@noinspection PhpIncludeInspection
ilDataEmitterTest is part of the petri net based workflow engine.
testConstructorValidContext()
testSetGetTargetDetector()
@noinspection PhpIncludeInspection
@noinspection PhpIncludeInspection
@noinspection PhpIncludeInspection