public function testInvalidRequireUpperCase() { $password = new Plexity(); $password->requireUpperCase(); $this->setExpectedException('Ballen\\Plexity\\Exceptions\\ValidationException', 'The string failed to meet the upper case requirements.'); $password->check('allthelettersarelowercase'); }