Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor test #99

Merged
merged 6 commits into from
Aug 1, 2023
Merged

Refactor test #99

merged 6 commits into from
Aug 1, 2023

Conversation

ilyakharev
Copy link
Contributor

@ilyakharev ilyakharev commented Jul 24, 2023

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: #94

@ilyakharev ilyakharev added the bug Something isn't working label Jul 24, 2023
@ilyakharev ilyakharev self-assigned this Jul 24, 2023
@ilyakharev ilyakharev changed the title add class exist check in RequestTrait add class_exist check in RequestTrait Jul 24, 2023
@@ -255,7 +259,11 @@ protected function processResponse($service, $method, $response, $resultClass)
);

$msg = 'YDB ' . $service . ' ' . $method . ' (YDB_' . $statusCode . ' ' . $statusName . '): ' . $message;
if (isset(self::$ydbExceptions[$statusCode])) {
if (isset(self::$ydbExceptions[$statusCode]) && class_exists(self::$ydbExceptions[$statusCode])) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need remove check class exist.
May be additional test function for check ok all exceptions.

@ilyakharev ilyakharev changed the title add class_exist check in RequestTrait Refactor test Jul 24, 2023
@ilyakharev ilyakharev merged commit 362fd7b into main Aug 1, 2023
3 checks passed
@ilyakharev ilyakharev deleted the fix-exception-not-foud branch August 1, 2023 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants