Exemple #1
0
 /**
  * test clean
  */
 public function testClean()
 {
     $this->assertEquals(CCStr::clean('<>Hellö World!</>'), 'Helloe World');
     $this->assertEquals(CCStr::clean('&3mk%çäöü'), '3mkcaeoeue');
     $this->assertEquals(CCStr::clean(' Na       Tes t  '), 'Na Tes t');
     $this->assertEquals(CCStr::clean("/**\n\t* test clean\n*/"), 'test clean');
     $this->assertEquals(CCStr::clean('a|"bc!@£de^&$f g'), 'abcdef g');
 }