示例#1
0
 function testEscapeSingleQuotes()
 {
     $this->assertIdentical(StringUtility::escapeSingleQuotes('Test'), 'Test');
     $this->assertIdentical(StringUtility::escapeSingleQuotes("'Test'"), "\\'Test\\'");
     $this->assertIdentical(StringUtility::escapeSingleQuotes("'Test ' String'"), "\\'Test \\' String\\'");
 }