/** * Method to test JStringNormalise::fromCamelCase(). * * @param string $expected The expected value from the method. * @param string $input The input value for the method. * * @return void * * @dataProvider seedFromCamelCase * @since 11.3 */ public function testFromCamelCase($expected, $input) { $this->assertEquals($expected, JStringNormalise::fromCamelcase($input)); }
/** * Method to test JStringNormalise::fromCamelCase(string, true). * * @param string $input The input value for the method. * @param string $expected The expected value from the method. * * @return void * * @dataProvider getFromCamelCaseData * @since 11.3 * @covers JStringNormalise::fromCamelcase */ public function testFromCamelCase_grouped($input, $expected) { $this->assertEquals($expected, JStringNormalise::fromCamelcase($input, true)); }