Closed
Description
Description
I have not found a way how to convert Something1
into something_1
with String component. snake()
method converts Something1
into something1
which I think is correct behaviour.
I wonder what if we added a new method, like underscore()
that would do the conversion mentioned above?
Example
assertSame('something_1', u('Something1')->underscore()->toString());