not->toContain('$_SESSION[SESS_USER_ID]') ->and($body)->not->toContain('$_SESSION[SESS_CHANGE_PASSWORD]'); }); test('check_reset_no_authentication never mutates credentials or auto-redirects', function () use ($body) { expect($body)->not->toContain("password = ''") ->and($body)->not->toContain('auth_changepassword.php?action=force'); }); test('check_reset_no_authentication fails closed with an error on auth_method None', function () use ($body) { expect($body)->toContain('AUTH_METHOD_NONE') ->and($body)->toContain('auth_display_custom_error_message') ->and($body)->toContain('exit;'); });