예제 #1
0
 /**
  * @dataProvider dataSetValue
  *
  * @param string $column
  * @param string $value
  * @param array $expectedQueryPart
  * @param string $expectedQuery
  */
 public function testValues($column, $value, $expectedQueryPart, $expectedQuery)
 {
     $this->queryBuilder->insert('data');
     $this->queryBuilder->values([$column => $value]);
     $this->assertEquals($expectedQueryPart, $this->queryBuilder->getQueryPart('values'));
     $this->assertSame('INSERT INTO `*PREFIX*data` ' . $expectedQuery, $this->queryBuilder->getSQL());
 }