public function testSplitCamel() { $this->assertEquals('thirty seven', Utils::splitCamel('thirtySeven')); $this->assertEquals('one thousand and five hundred sixty three', Utils::splitCamel('oneThousandAndFiveHundredSixtyThree')); $this->assertEquals('seven hundred eighty five', Utils::splitCamel('sevenHundredEightyFive')); }
/** * Split camel case words to a sentence * * @param string $text * * @return string */ function split_camel($text) { return Utils::splitCamel($text); }