Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
ossinkine committed Mar 21, 2013

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/Db/RecordExistsTest.php
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@
use Zend\Db\Adapter\ParameterContainer;
use Zend\Db\Sql\Sql;
use Zend\Validator\Db\RecordExists;
use ZendTest\Db\TestAsset\TrustingSql92Platform;

/**
* @category Zend
@@ -268,7 +269,7 @@ public function testGetSelect()
);
$select = $validator->getSelect();
$this->assertInstanceOf('Zend\Db\Sql\Select', $select);
$this->assertEquals('SELECT "my"."users"."field1" AS "field1" FROM "my"."users" WHERE "field1" = \'\' AND "foo" != \'bar\'', $select->getSqlString());
$this->assertEquals('SELECT "my"."users"."field1" AS "field1" FROM "my"."users" WHERE "field1" = \'\' AND "foo" != \'bar\'', $select->getSqlString(new TrustingSql92Platform()));

$sql = new Sql($this->getMockHasResult());
$statement = $sql->prepareStatementForSqlObject($select);

0 comments on commit 8c16404

Please sign in to comment.