예제 #1
0
 /**
  * Test...
  *
  * @param   string  $string    @todo
  * @param   string  $charlist  @todo
  * @param   string  $expect    @todo
  *
  * @return  array
  *
  * @covers        Windwalker\String\Utf8String::rtrim
  * @dataProvider  seedTestRtrim
  * @since         1.0
  */
 public function testRtrim($string, $charlist, $expect)
 {
     if ($charlist === null) {
         $actual = Utf8String::rtrim($string);
     } else {
         $actual = Utf8String::rtrim($string, $charlist);
     }
     $this->assertEquals($expect, $actual);
 }