Example #1
0
 public function testIsComplete()
 {
     // Test that iscomplete returns false until the followup state is set
     $limit = new TimeLimit(60, 'dummy');
     $this->assertFalse($limit->isComplete());
     // Test that adding a state makes this method return true instead
     $dummyState = new State('dummy');
     $limit->setState($dummyState);
     $this->assertTrue($limit->isComplete());
 }