projects
/
m6w6
/
pq-gateway
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
added Table::with()
[m6w6/pq-gateway]
/
tests
/
lib
/
pq
/
Gateway
/
RowsetTest.php
diff --git
a/tests/lib/pq/Gateway/RowsetTest.php
b/tests/lib/pq/Gateway/RowsetTest.php
index 48ac624574615cc366a655835c34cfc56350b72e..037192a38728f8eba4b78fe31c45306a19c11e42 100644
(file)
--- a/
tests/lib/pq/Gateway/RowsetTest.php
+++ b/
tests/lib/pq/Gateway/RowsetTest.php
@@
-23,6
+23,7
@@
class RowsetTest extends \PHPUnit_Framework_TestCase {
$this->conn->exec(PQ_TEST_DATA);
Table::$defaultConnection = $this->conn;
$this->table = new Table("test");
$this->conn->exec(PQ_TEST_DATA);
Table::$defaultConnection = $this->conn;
$this->table = new Table("test");
+ $this->table->getQueryExecutor()->attach(new \QueryLogger());
}
protected function tearDown() {
}
protected function tearDown() {
@@
-107,7
+108,7
@@
class RowsetTest extends \PHPUnit_Framework_TestCase {
}
public function testDeleteFail() {
}
public function testDeleteFail() {
- $this->setExpectedException("
pq\\
Exception");
+ $this->setExpectedException("Exception");
$rowset = new Rowset($this->table);
$rowset->append(new Row($this->table, array("xx" => 0)))->delete();
}
$rowset = new Rowset($this->table);
$rowset->append(new Row($this->table, array("xx" => 0)))->delete();
}