コード例 #1
0
ファイル: Sql92Test.php プロジェクト: bradley-holt/zf2
 /**
  * @covers Zend\Db\Adapter\Platform\Sql92::quoteValue
  */
 public function testQuoteValue()
 {
     $this->assertEquals("'value'", $this->platform->quoteValue('value'));
 }
コード例 #2
0
ファイル: Sql92Test.php プロジェクト: rajanlamic/IntTest
 /**
  * @covers Zend\Db\Adapter\Platform\Sql92::quoteValue
  */
 public function testQuoteValue()
 {
     $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("'value'", $this->platform->quoteValue('value'));
 }