Phactory\Sql\RowTest::testToArray PHP Method

testToArray() public method

public testToArray ( )
    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']);
    }