19 declare(strict_types=1);
    21 require_once(__DIR__ . 
"/../../../../../../../vendor/composer/vendor/autoload.php");
    22 require_once(__DIR__ . 
"/../../../Base.php");
    30     protected Workflow\Linear 
$wf;
    40         $this->title = 
'title';
    45         $this->wf = 
$f->linear($this->title, $this->steps);
    50         $this->assertInstanceOf(
Workflow\Workflow::class, $this->wf);
    55         $this->assertEquals($this->title, $this->wf->getTitle());
    56         $this->assertEquals($this->steps, $this->wf->getSteps());
    57         $this->assertEquals(0, $this->wf->getActive());
    62         $this->assertEquals($this->title, $this->wf->getTitle());
    63         $this->assertEquals($this->steps, $this->wf->getSteps());
    64         $this->assertEquals(0, $this->wf->getActive());
    69         $this->assertEquals(count($this->steps), $this->wf->getAmountOfSteps());
    74         $wf = $this->wf->withActive(1);
    75         $this->assertEquals(1, $wf->getActive());
    82             $this->wf->withActive(-1);
    83             $this->assertFalse(
"This should not happen.");
    87         $this->assertTrue($raised);
    91             $this->wf->withActive(2);
    92             $this->assertFalse(
"This should not happen.");
    96         $this->assertTrue($raised);
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
testImplementsFactoryInterface()
 
This describes a Workflow. 
 
This is the interface for a workflow factory.