public function testOriginalContent() { $handlers = new HandlerContainer(); $handlers->add('p', function (ProcessedShortcode $s) { return $s->getTextContent(); }); $handlers->addAlias('q', 'p'); $processor = new Processor(new RegexParser(), $handlers); $this->assertSame('x [q]a[/q] [q]b[/q] y', $processor->process('x [p] [q]a[/q] [q]b[/q] [/p] y')); }