Issues

ZF-9188: Failures in Zend_Cache_Manager

Description

Failures


PHPUnit 3.4.5 by Sebastian Bergmann.

.EEEE......E

Time: 16 seconds, Memory: 6.50Mb

There were 5 errors:

1) Zend_Cache_ManagerTest::testLazyLoadsDefaultPageCache
Zend_Cache_Exception: A cache configuration templatedoes not exist with the name "tagCache"

/var/www/ZendFramework-trunk/library/Zend/Cache/Manager.php:324

2) Zend_Cache_ManagerTest::testCanOverrideCacheFrontendNameConfiguration
Zend_Cache_Exception: A cache configuration templatedoes not exist with the name "tagCache"

/var/www/ZendFramework-trunk/library/Zend/Cache/Manager.php:324

3) Zend_Cache_ManagerTest::testCanMergeTemplateCacheOptionsFromZendConfig
Zend_Cache_Exception: A cache configuration templatedoes not exist with the name "tagCache"

/var/www/ZendFramework-trunk/library/Zend/Cache/Manager.php:324

4) Zend_Cache_ManagerTest::testCanOverrideCacheBackendendNameConfiguration
Zend_Cache_Exception: A cache configuration templatedoes not exist with the name "tagCache"

/var/www/ZendFramework-trunk/library/Zend/Cache/Manager.php:324

5) Zend_Cache_ManagerTest::testGettingPageCacheAlsoCreatesTagCache
Zend_Cache_Exception: cache_dir must be a directory

/var/www/ZendFramework-trunk/library/Zend/Cache.php:208
/var/www/ZendFramework-trunk/library/Zend/Cache/Backend/File.php:154
/var/www/ZendFramework-trunk/library/Zend/Cache/Backend/File.php:121
/var/www/ZendFramework-trunk/library/Zend/Cache.php:152
/var/www/ZendFramework-trunk/library/Zend/Cache.php:93
/var/www/ZendFramework-trunk/library/Zend/Cache/Manager.php:230
/var/www/ZendFramework-trunk/library/Zend/Cache/Manager.php:223

FAILURES!
Tests: 12, Assertions: 7, Errors: 5.

Changes made in Zend_Cache_Manager should be reflected in tests units.

Comments

Attached the patch of the correction.

Fixed previously? Just checked and cannot reproduce any of the detailed errors.

@Padraic

Changes made in revision r20602 in class Zend_Cache_Manager::$_optionTemplates option *tagcache* renamed to *pagetag*, in test units Zend_Cache_ManagerTest makes use *tagcache*.

Other problem in revision r20582 in Zend_Cache_Manager::$_optionTemplates['page']['name'] changed to Capture in test units Zend_Cache_ManagerTest in line 73 current code


$this->assertTrue($manager->getCache('page') instanceof Zend_Cache_Frontend_Output);

Should be


$this->assertTrue($manager->getCache('page') instanceof Zend_Cache_Frontend_Capture);

Thanks

ManagerTest has been omitted from AllTests - reopening for resolution shortly.

Committed patch as r22056. 1 remaining error to resolve concerning a non-existing "frontend" index.

If it's not resolved now, I'll eat my hat. Not that I have a hat ;).

Thanks @PadraicB ;).