Пример #1
0
 /**
  * @covers ::render
  * @covers ::parameters
  * @dataProvider dataInsert
  */
 public function testInsert($query, $expectedSql, $expectedParameters)
 {
     $this->assertEquals($expectedSql, Compiler\Insert::render($query));
     $this->assertEquals($expectedParameters, Compiler\Insert::parameters($query));
 }
Пример #2
0
 /**
  * @return string
  */
 public function sql()
 {
     return Compiler\Insert::render($this);
 }