Fork me on GitHub

@simon #sql If that function is everything, I'd just use a temporary db and issue SELECT initcap('input'). Maybe I don't understand the question.


@not-raspberry Yeah that's a MySQL function which is intended to convert any case sentence to a Sentence case. Just trying to know how to write test scripts for a function (or any procedure) like this one.


Just as any unit test, except here you have to issue MySQL queries. Connect to MySQL in a fixture, and use it in the test.