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