Exemple #1
0
 /**
  * @covers Zend\Db\Adapter\Platform\Sql92::quoteValueList
  */
 public function testQuoteValueList()
 {
     $this->setExpectedException('PHPUnit_Framework_Error', 'Attempting to quote a value without specific driver level support can introduce security vulnerabilities in a production environment.');
     $this->assertEquals("'Foo O\\'Bar'", $this->platform->quoteValueList("Foo O'Bar"));
 }
Exemple #2
0
 /**
  * @covers Zend\Db\Adapter\Platform\Sql92::quoteValueList
  */
 public function testQuoteValueList()
 {
     $this->assertEquals("'Foo O\\'Bar'", $this->platform->quoteValueList("Foo O'Bar"));
     $this->assertEquals("'Foo O\\'Bar'", $this->platform->quoteValueList(array("Foo O'Bar")));
     $this->assertEquals("'value', 'Foo O\\'Bar'", $this->platform->quoteValueList(array('value', "Foo O'Bar")));
 }