X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Flib%2Fpq%2FGateway%2FRowTest.php;fp=tests%2Flib%2Fpq%2FGateway%2FRowTest.php;h=6a738d3b4e54dae0f58be6d3f8141c57809e101b;hb=3c8b32baaac62855e2c9f5bfdb5ede9685ce2b76;hp=00dbbbb6c9c2eb806a877e3177adb1036d05ed54;hpb=580991717f5e8bb237403757e2111a8d04aca616;p=m6w6%2Fpq-gateway diff --git a/tests/lib/pq/Gateway/RowTest.php b/tests/lib/pq/Gateway/RowTest.php index 00dbbbb..6a738d3 100644 --- a/tests/lib/pq/Gateway/RowTest.php +++ b/tests/lib/pq/Gateway/RowTest.php @@ -90,7 +90,6 @@ class RowTest extends \PHPUnit_Framework_TestCase { function testOptimisticLockFail() { $this->table->setLock(new Table\OptimisticLock("counter")); $row = $this->table->find(null, null, 1)->current(); - $cnt = $row->counter->get(); $row->data = "foo"; executeInConcurrentTransaction( $this->table->getQueryExecutor(), @@ -103,7 +102,7 @@ class RowTest extends \PHPUnit_Framework_TestCase { function testRef() { foreach ($this->table->find() as $row) { foreach ($row->reftest() as $ref) { - $this->assertEquals($row->id->get(), $ref->test->id->get()); + $this->assertEquals($row->id->get(), $ref->test->current()->id->get()); } } }