/** * @test */ public function setSubpartWithPrefix() { $this->subject->processTemplate('Some text. ' . '<!-- ###FIRST_MY_SUBPART### -->' . 'More text here. ' . '<!-- ###FIRST_MY_SUBPART### -->' . '<!-- ###MY_SUBPART### -->' . 'More text there. ' . '<!-- ###MY_SUBPART### -->' . 'Even more text.'); $this->subject->setSubpart('MY_SUBPART', 'foo', 'FIRST'); self::assertSame('Some text. ' . 'foo' . 'More text there. ' . 'Even more text.', $this->subject->getSubpart()); self::assertSame('', $this->subject->getWrappedConfigCheckMessage()); }