public formatPropertyName ( string $name ) : string | ||
$name | string | |
Résultat | string |
public function formatPropertyName($name)
{
return '"' . str_replace('"', '""', $name) . '"';
}
/** * tests formatting a property name * * @group formatter * @group sourcetest */ public function testFormatPropertyName() { self::assertSame('"text"', $this->object->formatPropertyName('text')); }