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.ilSimpleEmitter.php';
 
   41            $ilSetting->delete(
'IL_PHPUNIT_TEST_MICROTIME');
 
   54            'Construction failed with valid context passed to constructor.' 
   64        $actual = $emitter->getContext();
 
   67        if ($actual === $this->node) {
 
   68            $this->assertEquals($actual, $this->node);
 
   70            $this->assertTrue(
false, 
'Context not identical.');
 
   77        require_once 
'./Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php';
 
   80        $target_node->addDetector($target_detector);
 
   85        $emitter->setTargetDetector($target_detector);
 
   88        $actual = $emitter->getTargetDetector();
 
   89        $this->assertEquals($target_detector, $actual);
 
   95        require_once 
'./Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php';
 
   98        $target_node->addDetector($target_detector);
 
  101        $emitter->setTargetDetector($target_detector);
 
  106        $actual = $target_detector->getDetectorState();
 
  107        $this->assertTrue($actual);
 
An exception for terminatinating execution or to throw for unit testing.
@noinspection PhpIncludeInspection
@noinspection PhpIncludeInspection
@noinspection PhpIncludeInspection
ilSimpleEmitterTest is part of the petri net based workflow engine.
testSetGetTargetDetector()
testConstructorValidContext()
@noinspection PhpIncludeInspection