Index: tests/Zend/Db/Table/TestCommon.php =================================================================== --- tests/Zend/Db/Table/TestCommon.php (revision 20278) +++ tests/Zend/Db/Table/TestCommon.php (working copy) @@ -1304,9 +1304,9 @@ try { $bugsTable = $this->_getTable('My_ZendDbTable_TableBugs'); $primary = $bugsTable->info(Zend_Db_Table_Abstract::PRIMARY); - $this->fail('Expected to catch Zend_Db_Table_Exception'); - } catch (Zend_Exception $e) { - $this->assertType('Zend_Db_Table_Exception', $e); + $this->fail('Expected to catch PHPUnit_Framework_Error'); + } catch (PHPUnit_Framework_Error $e) { + $this->assertEquals(E_USER_NOTICE, $e->getCode(), 'Error type not E_USER_NOTICE'); $this->assertEquals('Failed saving metadata to metadataCache', $e->getMessage()); } Index: library/Zend/Db/Table/Abstract.php =================================================================== --- library/Zend/Db/Table/Abstract.php (revision 20278) +++ library/Zend/Db/Table/Abstract.php (working copy) @@ -823,11 +823,7 @@ $metadata = $this->_db->describeTable($this->_name, $this->_schema); // If $this has a metadata cache, then cache the metadata if (null !== $this->_metadataCache && !$this->_metadataCache->save($metadata, $cacheId)) { - /** - * @see Zend_Db_Table_Exception - */ - require_once 'Zend/Db/Table/Exception.php'; - throw new Zend_Db_Table_Exception('Failed saving metadata to metadataCache'); + trigger_error('Failed saving metadata to metadataCache', E_USER_NOTICE); } }