| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- /**
- * @author Khoa Bui (khoaofgod) <khoaofgod@gmail.com> http://www.phpfastcache.com
- * @author Georges.L (Geolim4) <contact@geolim4.com>
- */
- use phpFastCache\Helper\TestHelper;
- chdir(__DIR__);
- require_once __DIR__ . '/../src/autoload.php';
- $testHelper = new TestHelper('Autoload');
- /**
- * Testing PhpFastCache autoload
- */
- if (!class_exists('phpFastCache\CacheManager')) {
- $testHelper->printFailText('Autoload failed to find the CacheManager');
- }else{
- $testHelper->printPassText('Autoload successfully found the CacheManager');
- }
- /**
- * Testing Psr autoload
- */
- if (!interface_exists('Psr\Cache\CacheItemInterface')) {
- $testHelper->printFailText('Autoload failed to find the Psr CacheItemInterface');
- }else{
- $testHelper->printPassText('Autoload successfully found the Psr CacheItemInterface');
- }
- $testHelper->terminateTest();
|