function testSubstNotFinished() { $tp2 = new Template(Tst::$tests . 'files/templates'); $this->assertTrue($tp2->set_file('testfile', 'replace2.thtml')); $tp2->set_var('test1', 'My Test'); $sub = $tp2->subst('testfile'); $sub = $this->strip_linefeeds($sub); // subst() does not apply the finish rules, so we get back the {test2} //$this->assertEquals('<p>My Test:{test2}</p>', $sub); // process is done else where now so {test2} variable is not present in this output $this->assertEquals('<p>My Test:</p>', $sub); }