/** * @expectedException \Exception * @expectedExceptionMessage Active task index is out of bounds. */ public function testTaskSetActiveException() { $object = new PhpProject(); $object->setActiveTaskIndex(10); }