Permalink
Browse files

Merge remote-tracking branch 'ralphschindler/feature/tablegateway-acc…

…essor-for-sql'
  • Loading branch information...
2 parents f753e42 + 390c063 commit e904d39c6412cd1724848720a2065acf65f4becb @EvanDotPro EvanDotPro committed May 9, 2012
Showing with 18 additions and 0 deletions.
  1. +8 −0 library/Zend/Db/TableGateway/TableGateway.php
  2. +10 −0 tests/Zend/Db/TableGateway/TableGatewayTest.php
@@ -129,6 +129,14 @@ public function getSelectResultPrototype()
}
/**
+ * @return \Zend\Db\Sql\Sql
+ */
+ public function getSql()
+ {
+ return $this->sql;
+ }
+
+ /**
* Select
*
* @param string|array|\Closure $where
@@ -91,6 +91,14 @@ public function testSetSelectResultPrototype()
}
/**
+ * @covers Zend\Db\TableGateway\TableGateway::getSql
+ */
+ public function testGetSql()
+ {
+ $this->assertInstanceOf('Zend\Db\Sql\Sql', $this->table->getSql());
+ }
+
+ /**
* @covers Zend\Db\TableGateway\TableGateway::getSelectResultPrototype
*/
public function testGetSelectResultPrototype()
@@ -100,6 +108,7 @@ public function testGetSelectResultPrototype()
/**
* @covers Zend\Db\TableGateway\TableGateway::select
+ * @covers Zend\Db\TableGateway\TableGateway::selectWith
*/
public function testSelectWithNoWhere()
{
@@ -112,6 +121,7 @@ public function testSelectWithNoWhere()
/**
* @covers Zend\Db\TableGateway\TableGateway::select
+ * @covers Zend\Db\TableGateway\TableGateway::selectWith
*/
public function testSelectWithWhereString()
{

0 comments on commit e904d39

Please sign in to comment.