assertEquals("foo", StringsUtils::unquote("'foo")); } /** * @see StringsUtils::camelToSnake() */ public function testCamelToSnake(): void { $this->assertEquals("foo_bar", StringsUtils::camelToSnake("FooBar")); $this->assertEquals("foo-bar", StringsUtils::camelToSnake("FooBar", '-')); $this->assertEquals("foo_bar", StringsUtils::camelToSnake("fooBar")); } /** * @see StringsUtils::convertHtmlToText() */ public function testConvertHtmlToText(): void { $this->assertEquals("contenu", (new StringsUtils())->convertHtmlToText("

contenu

")); } }