/** * @expectedException \Exception */ public function testAddGroupFailEmptyName() { $this->testDb->createPlainTables(array('groups', 'users')); $this->testDb->insertData(array('groups', 'user')); $this->userDao->addGroup(''); }