/** * @expectedException zibo\library\database\exception\DatabaseException */ public function testSetIsIndexedThrowsExceptionWhenNoBooleanPassed() { $field = new Field('name', 'type'); $field->setIsIndexed('test'); }