extension = self::$container->get(TextExtension::class); } public function testPlainText(): void { $this->assertSame('escaped text', $this->extension->plainText('escaped text')); $this->assertSame('escaped text', $this->extension->plainText('escaped text')); } public function testSafeString(): void { $this->assertSame('sabeg', $this->extension->safeString('saбeг')); $this->assertSame('saefe', $this->extension->safeString('säfe')); $this->assertSame('safe', $this->extension->safeString('sa|||f|*e')); } public function testSlug(): void { $this->assertSame('john-doe', $this->extension->slug('John Doe')); $this->assertSame('b-o-e', $this->extension->slug('б o ê')); } public function testUcwords(): void { $this->assertSame('LowErCase', $this->extension->ucwords('lowErCase')); $this->assertSame('Lowercase more words', $this->extension->ucwords('lowercase more words')); } }