Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[#4169] Additional CS fixes

- per php-cs-fixer
  • Loading branch information...
commit 77fadf8d353372afe4ff27c63e2ecb2d02afa480 1 parent e2e5fd7
@weierophinney weierophinney authored
View
2  library/Zend/Paginator/Adapter/DbTableGateway.php
@@ -29,7 +29,7 @@ public function __construct(TableGateway $tableGateway, $where = null, $order =
if ($order) {
$select->order($order);
}
-
+
$dbAdapter = $tableGateway->getAdapter();
$resultSetPrototype = $tableGateway->getResultSetPrototype();
View
16 tests/ZendTest/Paginator/Adapter/DbTableGatewayTest.php
@@ -24,9 +24,9 @@ class DbTableGatewayTest extends \PHPUnit_Framework_TestCase
/** @var DbTableGateway */
protected $dbTableGateway;
-
+
protected $mockTableGateway;
-
+
public function setup()
{
$mockStatement = $this->getMock('Zend\Db\Adapter\Driver\StatementInterface');
@@ -50,14 +50,14 @@ public function setup()
);
$this->mockStatement = $mockStatement;
-
+
$this->mockTableGateway = $mockTableGateway;
}
public function testGetItems()
{
$this->dbTableGateway = new DbTableGateway($this->mockTableGateway);
-
+
$mockResult = $this->getMock('Zend\Db\Adapter\Driver\ResultInterface');
$this->mockStatement
->expects($this->any())
@@ -71,7 +71,7 @@ public function testGetItems()
public function testCount()
{
$this->dbTableGateway = new DbTableGateway($this->mockTableGateway);
-
+
$mockResult = $this->getMock('Zend\Db\Adapter\Driver\ResultInterface');
$mockResult->expects($this->any())
->method('current')
@@ -84,19 +84,19 @@ public function testCount()
$count = $this->dbTableGateway->count();
$this->assertEquals(10, $count);
}
-
+
public function testGetItemsWithWhereAndOrder()
{
$where = "foo = bar";
$order = "foo";
$this->dbTableGateway = new DbTableGateway($this->mockTableGateway, $where, $order);
-
+
$mockResult = $this->getMock('Zend\Db\Adapter\Driver\ResultInterface');
$this->mockStatement
->expects($this->any())
->method('execute')
->will($this->returnValue($mockResult));
-
+
$items = $this->dbTableGateway->getItems(2, 10);
$this->assertInstanceOf('Zend\Db\ResultSet\ResultSet', $items);
}
Please sign in to comment.
Something went wrong with that request. Please try again.