/** * @dataProvider toSpacesProvider() */ public function testToSpaces($expected, $str, $tabLength = 4) { $result = S::toSpaces($str, $tabLength); $this->assertInternalType('string', $result); $this->assertEquals($expected, $result); }
public function toSpaces($string, $tabLength = 4) { return Stringy::toSpaces($string, $tabLength); }