예제 #1
0
파일: RowTest.php 프로젝트: m6w6/pq-gateway
 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());
 }