Permalink
Browse files

sending the test file of Fixing the problem with order and \Zend\Db\S…

…ql\Expression
  • Loading branch information...
1 parent 1720147 commit 9bc26c7a01e59a53c7f82ef4f1e3df4c20af2285 @strubloid committed Nov 19, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/ZendTest/Db/Sql/SelectTest.php
@@ -260,6 +260,10 @@ public function testOrder()
$select = new Select;
$select->order(array('name ASC', 'age DESC'));
$this->assertEquals(array('name ASC', 'age DESC'), $select->getRawState('order'));
+
+ $select = new Select;
+ $select->order(new \Zend\db\sql\Expression('id DESC'));
+ $this->assertEquals('id DESC', current($select->getRawState('order'))->getExpression());
}
/**

0 comments on commit 9bc26c7

Please sign in to comment.