Exemplo n.º 1
0
 /**
  * @test
  */
 public function hideAndUnhideTwoSubpartsWithPrefix()
 {
     $this->subject->processTemplate('Some text. ' . '<!-- ###FIRST_MY_SUBPART_1### -->' . 'More text here. ' . '<!-- ###FIRST_MY_SUBPART_1### -->' . '<!-- ###FIRST_MY_SUBPART_2### -->' . 'More text there. ' . '<!-- ###FIRST_MY_SUBPART_2### -->' . 'Even more text.');
     $this->subject->hideSubparts('FIRST_MY_SUBPART_1');
     $this->subject->hideSubparts('FIRST_MY_SUBPART_2');
     $this->subject->unhideSubparts('1,2', '', 'FIRST_MY_SUBPART');
     self::assertSame('Some text. ' . 'More text here. ' . 'More text there. ' . 'Even more text.', $this->subject->getSubpart());
     self::assertSame('', $this->subject->getWrappedConfigCheckMessage());
 }