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