Skip to content

Commit d42319a

Browse files
authored
Merge pull request #307 from Geolim4/final
Improved tests to test the CacheItemInterface
2 parents 9870ad1 + 7d5e155 commit d42319a

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/Autoload.test.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,24 @@
1212
$status = 0;
1313
echo "Testing autoload\n";
1414

15+
/**
16+
* Testing PhpFastCache autoload
17+
*/
1518
if (!class_exists('phpFastCache\CacheManager')) {
1619
echo "[FAIL] Autoload failed to find the CacheManager\n";
1720
$status = 255;
1821
}else{
1922
echo "[PASS] Autoload successfully found the CacheManager\n";
2023
}
2124

25+
/**
26+
* Testing Psr autoload
27+
*/
28+
if (!interface_exists('Psr\Cache\CacheItemInterface')) {
29+
echo "[FAIL] Autoload failed to find the Psr CacheItemInterface\n";
30+
$status = 255;
31+
}else{
32+
echo "[PASS] Autoload successfully found the Psr CacheItemInterface\n";
33+
}
34+
2235
exit($status);

0 commit comments

Comments
 (0)