Skip to content

Commit 3545669

Browse files
committed
Fixed example & travis error
1 parent 9212141 commit 3545669

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

examples/legacy.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@
1717
// Include phpFastCache autoloader
1818
require __DIR__ . '/../src/autoload.php';
1919

20-
// Not provided by phpFastCache
21-
// you have to do it yourself
22-
require __DIR__ . 'YOUR_PROJECT/fig_cache_interfaces.php';
23-
2420
$InstanceCache = CacheManager::getInstance('memcache');
2521

2622
/**

src/autoload.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@
3636
trigger_error('Cannot locate the Psr/Cache files', E_USER_ERROR);
3737
return;
3838
}
39-
}else{
40-
// Unsupported entity
41-
return;
4239
}
4340

4441
$entity = str_replace('\\', '/', $entity);

tests/Autoload.test.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
if (!class_exists('phpFastCache\CacheManager')) {
1616
echo "[FAIL] Autoload failed to find the CacheManager\n";
1717
$status = 255;
18+
}else{
19+
echo "[PASS] Autoload successfully found the CacheManager\n";
1820
}
19-
echo "[PASS] Autoload successfully found the CacheManager\n";
2021

2122
exit($status);

0 commit comments

Comments
 (0)