assertTrue( $statusOK->isGood(), 'Password does not match username' ); $statusLong = PasswordPolicyChecks::checkPasswordCannotMatchUsername( 1, // policy value $user, // User 'user' // password ); $this->assertFalse( $statusLong->isGood(), 'Password matches username' ); $this->assertTrue( $statusLong->isOK(), 'Password matches username, not fatal' ); } }