diff --git a/test/PqConnectionTest.php b/test/PqConnectionTest.php index d0bc5d9..10a26e4 100644 --- a/test/PqConnectionTest.php +++ b/test/PqConnectionTest.php @@ -93,10 +93,9 @@ public function testNextResultBeforeConsumption() { $result = $this->link->query("SELECT * FROM test; SELECT * FROM test;"); - $this->expectException(\Error::class); - $this->expectExceptionMessage('Consume entire current result before requesting next result'); + $result = $result->getNextResult(); - $result->getNextResult(); + $this->verifyResult($result, $this->getData()); } public function testUnconsumedMultiResult()