ソースを参照

Catch CakeException instead of RuntimeException

othercorey 3 年 前
コミット
82d252b3d8
1 ファイル変更1 行追加1 行削除
  1. 1 1
      tests/TestCase/Http/Client/Auth/OauthTest.php

+ 1 - 1
tests/TestCase/Http/Client/Auth/OauthTest.php

@@ -378,7 +378,7 @@ class OauthTest extends TestCase
             $request = $auth->authentication($request, $options);
             $result = $request->getHeaderLine('Authorization');
             $this->assertSignatureFormat($result);
-        } catch (RuntimeException $e) {
+        } catch (CakeException $e) {
             // Handle 22.04 + OpenSSL bug. This should be safe to remove in the future.
             if (strpos($e->getMessage(), 'unexpected eof while reading') !== false) {
                 $this->markTestSkipped('Skipping because of OpenSSL bug.');