Skip to content

Instantly share code, notes, and snippets.

@amcsi
Created June 4, 2024 16:16
Show Gist options
  • Save amcsi/d4d277135bc6744c580d4aaffdc8305b to your computer and use it in GitHub Desktop.
Save amcsi/d4d277135bc6744c580d4aaffdc8305b to your computer and use it in GitHub Desktop.
public static function provideCreate()
{
return [
[new Expectation('The password must be at least 9 characters.', 'pass')],
[new Expectation('The password must contain at least one uppercase and one lowercase letter.', 'passwordx')],
[new Expectation('The password must contain at least one number.', 'Passwordx')],
[new Expectation("Your chosen password is not secure enough: This is a very common password. Add another word or two. Uncommon words are better. Capitalization doesn't help very much.", 'Password1')],
[new Expectation("Your chosen password is not secure enough: This is similar to a commonly used password. Add another word or two. Uncommon words are better. Capitalization doesn't help very much. Predictable substitutions like '@' instead of 'a' don't help very much.", 'P@ssw0rd1')],
[new Expectation('Your chosen password is not secure enough: Repeats like "abcabcabc" are only slightly harder to guess than "abc". Add another word or two. Uncommon words are better. Avoid repeated words and characters.', 'HiHiHiHi6')],
[new Expectation(null, 'teddyBear18')],
[new Expectation(null, 'b3dfe3Ofs')],
[new Expectation(null, 'adDFadf343')],
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment