Browse Source

[TESTS]
- ZF-2017 test alterations
- TestCommon Mysqli alteration

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

ralph 16 years ago
parent
commit
c71e74daf9

+ 4 - 1
tests/Zend/Db/Select/MysqliTest.php

@@ -32,11 +32,14 @@ class Zend_Db_Select_MysqliTest extends Zend_Db_Select_TestCommon
     }
 
     /**
+     * Mysqli does not support named binds
      * ZF-2017: Test bind use of the Zend_Db_Select class.
      * @group ZF-2017
+     * @expectedException Zend_Db_Statement_Exception
      */
     public function testSelectQueryWithBinds()
     {
-        $this->markTestSkipped($this->getDriver() . ' does not support named parameters');
+        parent::testSelectQueryWithBinds();
     }
+    
 }

+ 5 - 2
tests/Zend/Db/Table/Select/MysqliTest.php

@@ -32,11 +32,14 @@ class Zend_Db_Table_Select_MysqliTest extends Zend_Db_Table_Select_TestCommon
     }
 
     /**
+     * Mysqli does not support named binds
      * ZF-2017: Test bind use of the Zend_Db_Select class.
      * @group ZF-2017
+     * @expectedException Zend_Db_Statement_Exception
      */
     public function testSelectQueryWithBinds()
     {
-        $this->markTestSkipped($this->getDriver() . ' does not support named parameters');
+        parent::testSelectQueryWithBinds();
     }
-}
+    
+}

+ 1 - 2
tests/Zend/Db/Table/Select/TestCommon.php

@@ -211,8 +211,7 @@ abstract class Zend_Db_Table_Select_TestCommon extends Zend_Db_Select_TestCommon
     {
         $table = $this->_getSelectTable('products');
         $select = $table->select();
-
-        $this->assertType('My_ZendDbTable_TableProducts', $select->getTable());
+        $this->assertSame($table, $select->getTable());
     }
     
     /**