projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More updates to stop using dev or alpha or beta versions.
[yaffs-website]
/
web
/
core
/
tests
/
Drupal
/
Tests
/
Component
/
Utility
/
CryptTest.php
diff --git
a/web/core/tests/Drupal/Tests/Component/Utility/CryptTest.php
b/web/core/tests/Drupal/Tests/Component/Utility/CryptTest.php
index 38743dfd5d34318ac828eb9c671d55bfdf0beeef..80208ef294f52ac69af244a8fb5bfe3b2b3e35d5 100644
(file)
--- a/
web/core/tests/Drupal/Tests/Component/Utility/CryptTest.php
+++ b/
web/core/tests/Drupal/Tests/Component/Utility/CryptTest.php
@@
-2,8
+2,8
@@
namespace Drupal\Tests\Component\Utility;
namespace Drupal\Tests\Component\Utility;
-use Drupal\Tests\UnitTestCase;
use Drupal\Component\Utility\Crypt;
use Drupal\Component\Utility\Crypt;
+use PHPUnit\Framework\TestCase;
/**
* Tests random byte generation.
/**
* Tests random byte generation.
@@
-12,7
+12,7
@@
use Drupal\Component\Utility\Crypt;
*
* @coversDefaultClass \Drupal\Component\Utility\Crypt
*/
*
* @coversDefaultClass \Drupal\Component\Utility\Crypt
*/
-class CryptTest extends
Unit
TestCase {
+class CryptTest extends TestCase {
/**
* Tests random byte generation.
/**
* Tests random byte generation.
@@
-77,7
+77,12
@@
class CryptTest extends UnitTestCase {
* Key to use in hashing process.
*/
public function testHmacBase64Invalid($data, $key) {
* 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);
}
Crypt::hmacBase64($data, $key);
}