Exemple #1
0
 /**
  * @covers Zend\Db\Adapter\Platform\IbmDb2::quoteValue
  */
 public function testQuoteValue()
 {
     if (!function_exists('db2_escape_string')) {
         $this->setExpectedException('PHPUnit_Framework_Error', 'Attempting to quote a value in Zend\\Db\\Adapter\\Platform\\IbmDb2 without extension/driver support can introduce security vulnerabilities in a production environment');
     }
     $this->assertEquals("'value'", $this->platform->quoteValue('value'));
 }
 /**
  * @covers Zend\Db\Adapter\Platform\IbmDb2::quoteValue
  */
 public function testQuoteValue()
 {
     $this->assertEquals("'value'", $this->platform->quoteValue('value'));
 }