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