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