Refactoring to make the test easier to read and remove redundant code:
assert_equal( $boolean, True)can be written asassert( $boolean )- Remove usage of
errorStringet al., which is error prone when the string is not erased after usage. Also made some of them more verbose/strict.