Example #1
0
 public function testSetRowsetPrototype()
 {
     $prop = new \ReflectionProperty("\\pq\\Gateway\\Table", "rowset");
     $prop->setAccessible(true);
     $this->assertEquals("\\pq\\Gateway\\Rowset", $prop->getValue($this->table));
     $this->table->setRowsetPrototype(null);
     $this->assertNull($prop->getValue($this->table));
     $rowset = new \pq\Gateway\Rowset($this->table);
     $this->table->setRowsetPrototype($rowset);
     $this->assertSame($rowset, $prop->getValue($this->table));
 }