X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Flib%2Fpq%2FGateway%2FRowsetTest.php;h=037192a38728f8eba4b78fe31c45306a19c11e42;hb=3c8b32baaac62855e2c9f5bfdb5ede9685ce2b76;hp=48ac624574615cc366a655835c34cfc56350b72e;hpb=0e2eb1f13ef60ce9a8709354136c42f7d87b2345;p=m6w6%2Fpq-gateway diff --git a/tests/lib/pq/Gateway/RowsetTest.php b/tests/lib/pq/Gateway/RowsetTest.php index 48ac624..037192a 100644 --- 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->table->getQueryExecutor()->attach(new \QueryLogger()); } protected function tearDown() { @@ -107,7 +108,7 @@ class RowsetTest extends \PHPUnit_Framework_TestCase { } 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(); }