public function testFromCamelCase() { $this->assertEquals('detail', Util::fromCamelCase('detail')); $this->assertEquals('detail-view', Util::fromCamelCase('detailView', '-')); $this->assertEquals('my_detail_view', Util::fromCamelCase('myDetailView')); $this->assertEquals('my_f_f', Util::fromCamelCase('myFF')); $input = array('detail', 'myDetailView', 'myFF'); $result = array('detail', 'my_detail_view', 'my_f_f'); $this->assertEquals($result, Util::fromCamelCase($input)); }