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