Issues

ZF-9188: Failures in Zend_Cache_Manager

Issue Type: Unit Tests: Problem Created: 2010-02-16T04:03:56.000+0000 Last Updated: 2010-04-29T10:15:32.000+0000 Status: Resolved Fix version(s): - 1.10.5 (26/May/10)

Reporter: Ramon Henrique Ornelas (ramon) Assignee: Pádraic Brady (padraic) Tags: - Zend_Cache

Related issues: Attachments: - Zend_Cache_ManagerTest.patch

Description

Failures

<pre class="highlight">
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

Posted by Ramon Henrique Ornelas (ramon) on 2010-02-16T04:13:02.000+0000

Attached the patch of the correction.

Posted by Pádraic Brady (padraic) on 2010-04-28T09:12:39.000+0000

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

Posted by Ramon Henrique Ornelas (ramon) on 2010-04-28T19:52:17.000+0000

@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

<pre class="highlight">
$this->assertTrue($manager->getCache('page') instanceof Zend_Cache_Frontend_Output);

Should be

<pre class="highlight">
$this->assertTrue($manager->getCache('page') instanceof Zend_Cache_Frontend_Capture);

Thanks

Posted by Pádraic Brady (padraic) on 2010-04-29T08:05:57.000+0000

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

Posted by Pádraic Brady (padraic) on 2010-04-29T08:14:05.000+0000

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

Posted by Pádraic Brady (padraic) on 2010-04-29T08:20:38.000+0000

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

Posted by Ramon Henrique Ornelas (ramon) on 2010-04-29T10:15:32.000+0000

Thanks @PadraicB ;).

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts