insert() public method

Converts the query into an INSERT.
public insert ( ) : Query
return Query
 public function testInsertRecord()
 {
     $binding = $this->createHttpBinding();
     $before = $this->getResultCount($binding->command('SELECT count(*) FROM Address'));
     $query = new Query();
     $query->insert()->fields(array('street', 'type', 'city'))->values(array('5th avenue', 'villetta', '#18:0'))->into('Address');
     $this->assertHttpStatus(200, $this->doQuery($query, $binding));
     $after = $this->getResultCount($binding->command('SELECT count(*) FROM Address'));
     $this->assertSame($after, $before + 1);
 }