Пример #1
0
 function testBasic()
 {
     $row = new Row($this->table, array("id" => 3), true);
     $this->assertTrue($row->isDirty());
     $row->refresh();
     $this->assertEquals(array("id" => "3", "created" => new \pq\DateTime("tomorrow"), "counter" => "1", "number" => "1.1", "data" => "tomorrow", "list" => array(1, 2, 3), "prop" => null), $row->getData());
     $this->assertFalse($row->isDirty());
 }