setUpSmarty(__DIR__); } /** * Sequence: include parent -> include child(extends parent) -> include parent. * Expected: PARENT CHILD PARENT * Bug (#1189): PARENT CHILD CHILD */ public function testBlockOverrideDoesNotLeakIntoLaterParentInclude() { $result = $this->smarty->fetch('top.tpl'); $this->assertSame('PARENT CHILD PARENT', preg_replace('/\s+/', ' ', trim($result))); } }