فهرست منبع

ZF-7354
- Fixed unit tests in Zend_Db_Table Relationship to test for error no

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@16977 44c647ce-9c0f-0410-b52a-842ac1e357ba

ralph 16 سال پیش
والد
کامیت
24b0775bbe
1فایلهای تغییر یافته به همراه9 افزوده شده و 0 حذف شده
  1. 9 0
      tests/Zend/Db/Table/Relationships/TestCommon.php

+ 9 - 0
tests/Zend/Db/Table/Relationships/TestCommon.php

@@ -156,6 +156,9 @@ abstract class Zend_Db_Table_Relationships_TestCommon extends Zend_Db_Table_Test
         }
     }
 
+    /**
+     * @expectedException PHPUnit_Framework_Error
+     */
     public function testTableRelationshipFindParentRowException()
     {
         $bug_id = $this->_db->quoteIdentifier('bug_id', true);
@@ -184,6 +187,9 @@ abstract class Zend_Db_Table_Relationships_TestCommon extends Zend_Db_Table_Test
         }
     }
 
+    /**
+     * @expectedException PHPUnit_Framework_Error
+     */
     public function testTableRelationshipFindManyToManyRowset()
     {
         $table = $this->_table['bugs'];
@@ -198,6 +204,9 @@ abstract class Zend_Db_Table_Relationships_TestCommon extends Zend_Db_Table_Test
         $this->assertEquals(3, $destRows->count());
     }
 
+    /**
+     * @expectedException PHPUnit_Framework_Error
+     */
     public function testTableRelationshipFindManyToManyRowsetSelect()
     {
         $product_name = $this->_db->foldCase('product_name');