X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FTests%2FComponent%2FUtility%2FCryptTest.php;h=80208ef294f52ac69af244a8fb5bfe3b2b3e35d5;hb=4f1b9b4ab48a8498afac9e2213a02a23ccf4a06c;hp=c87628f75cda54a31005d1b61cadfba13acfffaf;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/tests/Drupal/Tests/Component/Utility/CryptTest.php b/web/core/tests/Drupal/Tests/Component/Utility/CryptTest.php index c87628f75..80208ef29 100644 --- a/web/core/tests/Drupal/Tests/Component/Utility/CryptTest.php +++ b/web/core/tests/Drupal/Tests/Component/Utility/CryptTest.php @@ -77,7 +77,12 @@ class CryptTest extends TestCase { * Key to use in hashing process. */ public function testHmacBase64Invalid($data, $key) { - $this->setExpectedException(\InvalidArgumentException::class); + if (method_exists($this, 'expectException')) { + $this->expectException('InvalidArgumentException'); + } + else { + $this->setExpectedException('InvalidArgumentException'); + } Crypt::hmacBase64($data, $key); }