Ejemplo n.º 1
0
 public function testDelimiterOnExecute()
 {
     $this->object->setExport(true);
     $query = 'SELECT * FROM users';
     $expected = $query . ';';
     $this->object->execute($query);
     $actual = $this->object->getSql();
     $this->assertStringStartsWith($expected, $actual);
     $this->object->setExport(true);
     $delimiter = '|';
     $this->object->setDelimiter($delimiter);
     $expected = $query . $delimiter;
     $this->object->execute($query);
     $actual = $this->object->getSql();
     $this->assertStringStartsWith($expected, $actual);
 }