/** * @test */ public function getSubpartWithLabelsReplacesLabelMarkersWithLabels() { $templateCode = 'Text before the subpart' . '<!-- ###MY_SUBPART### -->before ###LABEL_FOO### after<!-- ###MY_SUBPART### -->' . 'Text after the subpart.'; $this->subject->processTemplate($templateCode); self::assertSame('before foo after', $this->subject->getSubpartWithLabels('MY_SUBPART')); }