/** * */ public function testInitialisation1() { $m = new Model01(); $this->assertEquals($m->swGetWorkflowId(), 'workflow1'); $this->assertEquals($m->swGetDefaultWorkflowId(), 'workflow1'); $this->assertTrue($m->swHasStatus()); $this->assertTrue($m->swIsInitialStatus($m->swGetStatus())); $this->assertTrue($m->swIsInitialStatus('workflow1/S1')); $this->assertTrue($m->swIsInitialStatus('S1')); $this->assertTrue($m->swIsInitialStatus()); $this->assertFalse($m->swIsFinalStatus()); $this->assertEquals($m->swGetStatus()->toString(), 'workflow1/S1'); $this->assertEquals(count($m->swGetAllStatus()), 5); $this->assertEquals($m->swIsEventEnabled(), false); }