/** * @expectedException Cartalyst\Sentry\Users\PasswordRequiredException */ public function testValidationThrowsPasswordExceptionIfNoneGiven() { $user = new User(); $user->email = 'foo'; $user->validate(); }