validate(); $this->fail('Empty User failed to throw validation exception'); } catch (Exception $e) { } $user->setUsername('test'); $user->setFirstname('Test'); $user->setLastname('User'); $user->validate(); } }