Exemplo n.º 1
0
 /**
  * @covers Xoops\Core\Text\Sanitizer::smiley
  */
 public function testSmiley($text)
 {
     if (\Xoops::getInstance()->isActiveModule('smilies')) {
         $message = $this->object->smiley('happy :-) happy');
         $this->assertRegExp('/^happy .*<img.* happy$/', $message);
     } else {
         $this->markTestSkipped('Smilies module not installed');
     }
 }