コード例 #1
0
 /**
  * Tests replacing single ampersands with the entity, but leaving double ampersands
  * and ampsersand-octothorpe combinations intact.
  *
  * @return void
  */
 public function testAmpReplace()
 {
     $this->assertEquals('&&george&mary&#3son', $this->object->ampReplace('&&george&mary&#3son'), 'Should replace single ampersands with HTML entity');
 }