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