File tree 3 files changed +5
-25
lines changed
3 files changed +5
-25
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Cache \Adapter \Redis \Tests ;
13
13
14
+ use Cache \Adapter \Common \Exception \CachePoolException ;
14
15
use Cache \Adapter \Redis \RedisCachePool ;
15
16
use PHPUnit \Framework \TestCase ;
16
17
@@ -19,11 +20,11 @@ class RedisCachePoolTest extends TestCase
19
20
/**
20
21
* Tests that an exception is thrown if invalid object is
21
22
* passed to the constructor.
22
- *
23
- * @expectedException \Cache\Adapter\Common\Exception\CachePoolException
24
23
*/
25
24
public function testConstructorWithInvalidObject ()
26
25
{
26
+ $ this ->expectException (CachePoolException::class);
27
+
27
28
new RedisCachePool (new \stdClass ());
28
29
}
29
30
}
Original file line number Diff line number Diff line change 24
24
],
25
25
"homepage" : " http://www.php-cache.com/en/latest/" ,
26
26
"require" : {
27
- "php" : " ^7.1 || ^8.0 " ,
27
+ "php" : " >=7.4 " ,
28
28
"cache/adapter-common" : " ^1.0" ,
29
29
"cache/hierarchical-cache" : " ^1.0" ,
30
30
"psr/cache" : " ^1.0 || ^2.0" ,
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
-
3
- <phpunit backupGlobals =" false"
4
- backupStaticAttributes =" false"
5
- colors =" true"
6
- convertErrorsToExceptions =" true"
7
- convertNoticesToExceptions =" true"
8
- convertWarningsToExceptions =" true"
9
- processIsolation =" false"
10
- stopOnFailure =" false"
11
- bootstrap =" vendor/autoload.php"
12
- >
2
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" backupGlobals =" false" backupStaticAttributes =" false" colors =" true" convertErrorsToExceptions =" true" convertNoticesToExceptions =" true" convertWarningsToExceptions =" true" processIsolation =" false" stopOnFailure =" false" bootstrap =" vendor/autoload.php" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" >
13
3
<testsuites >
14
4
<testsuite name =" Main Test Suite" >
15
5
<directory >./Tests/</directory >
16
6
</testsuite >
17
7
</testsuites >
18
-
19
8
<groups >
20
9
<exclude >
21
10
<group >benchmark</group >
22
11
</exclude >
23
12
</groups >
24
-
25
- <filter >
26
- <whitelist >
27
- <directory >./</directory >
28
- <exclude >
29
- <directory >./Tests</directory >
30
- <directory >./vendor</directory >
31
- </exclude >
32
- </whitelist >
33
- </filter >
34
13
</phpunit >
You can’t perform that action at this time.
0 commit comments