Skip to content

Commit bd18a09

Browse files
committed
Fix test helper handling PhpfastcacheDriverCheckException with HHVM
1 parent 07f0268 commit bd18a09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Phpfastcache/Helper/TestHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public function accessInaccessibleMember($obj, $prop)
255255
*/
256256
public function exceptionHandler(\Throwable $exception)
257257
{
258-
if ($exception instanceof PhpfastcacheDriverCheckException) {
258+
if ($exception instanceof PhpfastcacheDriverCheckException || $exception->getPrevious() instanceof PhpfastcacheDriverCheckException) {
259259
$this->printSkipText('A driver could not be initialized due to missing requirement: ' . $exception->getMessage());
260260
$this->exitCode = 0;
261261
} else {

0 commit comments

Comments
 (0)