/**
  * @dataProvider surroundProvider()
  */
 public function testSurround($expected, $str, $substring)
 {
     $result = S::surround($str, $substring);
     $this->assertInternalType('string', $result);
     $this->assertEquals($expected, $result);
 }
Beispiel #2
0
 public function surround($string, $surround)
 {
     return Stringy::surround($string, $surround);
 }