Esempio n. 1
0
 /**
  * Test...
  *
  * @param   string  $string    @todo
  * @param   string  $charlist  @todo
  * @param   string  $expect    @todo
  *
  * @return  array
  *
  * @covers        Windwalker\String\Utf8String::trim
  * @dataProvider  seedTestTrim
  * @since         1.0
  */
 public function testTrim($string, $charlist, $expect)
 {
     if ($charlist === null) {
         $actual = Utf8String::trim($string);
     } else {
         $actual = Utf8String::trim($string, $charlist);
     }
     $this->assertEquals($expect, $actual);
 }