Explorar el Código

Swapped expected and actual in the assertEquals()

Martin Hujer hace 11 años
padre
commit
43c317b46e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      tests/Zend/Db/Select/TestCommon.php

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

@@ -1761,10 +1761,10 @@ abstract class Zend_Db_Select_TestCommon extends Zend_Db_TestSetup
     {
         $select = $this->_db->select();
         $select->from(array('p' => 'products'))->order('MD5(1);select');
-        $this->assertEquals($select, 'SELECT "p".* FROM "products" AS "p" ORDER BY "MD5(1);select" ASC');
+        $this->assertEquals('SELECT "p".* FROM "products" AS "p" ORDER BY "MD5(1);select" ASC', $select);
 
         $select = $this->_db->select();
         $select->from(array('p' => 'products'))->order('name;select;MD5(1)');
-        $this->assertEquals($select, 'SELECT "p".* FROM "products" AS "p" ORDER BY "name;select;MD5(1)" ASC');
+        $this->assertEquals('SELECT "p".* FROM "products" AS "p" ORDER BY "name;select;MD5(1)" ASC', $select);
     }
 }