/** * Tests converting snake_case to camelCase * @covers \Copycat\System\Charset::convertSnakeCamel() */ public function testConvertSnakeCamel() { $this->assertEmpty(Charset::convertSnakeCamel('')); $this->assertEquals('foo', Charset::convertSnakeCamel('foo')); $this->assertEquals('fooBar', Charset::convertSnakeCamel('foo_Bar')); $this->assertEquals('fooBar', Charset::convertSnakeCamel('foo_bar')); $this->assertEquals('fooBar', Charset::convertSnakeCamel('Foo_bar')); $this->assertEquals('fooBar', Charset::convertSnakeCamel('Foo_Bar')); }