public function testToArray()
{
$data = array('name' => 'testname');
$row = new Row('user', $data, $this->phactory);
$arr = $row->toArray();
$this->assertEquals($data, $arr);
//changing the returned array shouldn't change the row
$arr['name'] = 'foo';
$this->assertNotEquals($row->name, $arr['name']);
}