Skip to content

0.1.8: Fix & enhance tests (#16)

Latest
Compare
Choose a tag to compare
@roderik roderik released this 27 Mar 19:36
· 2 commits to master since this release
* Fix asserts using NotRegExp

Asserting against the regexp would only prove at leat one character in
the generated password is not in the given set.

Use of assertNotregExep verify that no character come from the set.

Also fix testGenerateNumerals because $capitalize default value in
constructor is set to true. Solely defined third parameter to true will
also generate upper chars.

Add specific test to generate numerals and disable $capitalize.

refs #13 #14

* Most ambiguous character are upper ones

fix #13

* We may not assert ambiguous chars will be generated

refs #13

* Setting noVovels implies having digits & uppers

https://github.com/roderik/pwgen-php/blob/7ecf653a701bfa4115fa2cc5fa438c1a5c4dfbaf/src/PWGen.php#L199

refs #13

* Fix test with noVovels set