Example #1
0
 /**
  * @testdox replaceTokens() resets the cached instance of TemplateForensics
  */
 public function testReplaceTokensResetsForensics()
 {
     $template = new Template('<br/>');
     $instance = $template->getForensics();
     $this->assertSame($instance, $template->getForensics(), 'The instance was not cached');
     $template->replaceTokens('//', function () {
     });
     $this->assertNotSame($instance, $template->getForensics());
 }