public function testReplaceWithoutContentOffset() { $text = ' [x value=" [name]yyy[/name] "] [name]yyy[/name] [/x] '; $result = ' [x value=" [name]yyy[/name] "] name [/x] '; $processor = new Processor(new RegexParser(), $this->getHandlers()); $this->assertSame($result, $processor->process($text)); }