Format = new FormatHelper(new View());
}
public function testInlineMarkers(): void
{
$this->assertSame('fett', $this->Format->text('*fett*'));
$this->assertSame('ganz kursiv hier', $this->Format->text('ganz _kursiv_ hier'));
$this->assertSame('alt neu', $this->Format->text('~alt~ neu'));
$this->assertSame('zwei Wörter, gut', $this->Format->text('*zwei Wörter*, gut'));
$this->assertSame('beides', $this->Format->text('*_beides_*'));
$this->assertSame('a und b', $this->Format->text('*a* und *b*'));
}
public function testMarkersNeedWordBoundariesAndNoInnerSpaces(): void
{
$this->assertSame('2*3*4', $this->Format->text('2*3*4'));
$this->assertSame('snake_case_name', $this->Format->text('snake_case_name'));
$this->assertSame('so * nicht fett *', $this->Format->text('so * nicht fett *'));
$this->assertSame('5 * 3 = 15', $this->Format->text('5 * 3 = 15'));
$this->assertSame('*offen', $this->Format->text('*offen'));
}
public function testLinesAndLists(): void
{
$this->assertSame('eins
zwei', $this->Format->text("eins\r\nzwei"));
$this->assertSame(
'Agenda: