mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
split tests because of hhvm
This commit is contained in:
@@ -103,8 +103,18 @@ class ExtendsResourceTest extends PHPUnit_Smarty
|
|||||||
$this->assertFalse($tpl->isCached());
|
$this->assertFalse($tpl->isCached());
|
||||||
$result = $this->smarty->fetch($tpl);
|
$result = $this->smarty->fetch($tpl);
|
||||||
$this->assertContains('Grandchild Page Title', $result);
|
$this->assertContains('Grandchild Page Title', $result);
|
||||||
$this->smarty->_cache['template_objects'] = null;
|
}
|
||||||
$tpl2 = $this->smarty->createTemplate('extends:021_parent.tpl|021_child.tpl|021_grandchild.tpl');
|
|
||||||
|
/**
|
||||||
|
* test grandchild/child/parent dependency test1
|
||||||
|
* @runInSeparateProcess
|
||||||
|
* @preserveGlobalState disabled
|
||||||
|
*/
|
||||||
|
public function testCompileBlockGrandChildMustCompile_021_12()
|
||||||
|
{
|
||||||
|
$this->smarty->caching = true;
|
||||||
|
$this->smarty->cache_lifetime = 1000;
|
||||||
|
$tpl2 = $this->smarty->createTemplate('extends:021_parent.tpl|021_child.tpl|021_grandchild.tpl');
|
||||||
$this->assertTrue($tpl2->isCached());
|
$this->assertTrue($tpl2->isCached());
|
||||||
$result = $this->smarty->fetch($tpl2);
|
$result = $this->smarty->fetch($tpl2);
|
||||||
$this->assertContains('Grandchild Page Title', $result);
|
$this->assertContains('Grandchild Page Title', $result);
|
||||||
@@ -127,7 +137,17 @@ class ExtendsResourceTest extends PHPUnit_Smarty
|
|||||||
$this->assertFalse($tpl->isCached());
|
$this->assertFalse($tpl->isCached());
|
||||||
$result = $this->smarty->fetch($tpl);
|
$result = $this->smarty->fetch($tpl);
|
||||||
$this->assertContains('Grandchild Page Title', $result);
|
$this->assertContains('Grandchild Page Title', $result);
|
||||||
$this->smarty->_cache['template_objects'] = null;
|
}
|
||||||
|
/**
|
||||||
|
* test grandchild/child/parent dependency test2
|
||||||
|
* @runInSeparateProcess
|
||||||
|
* @preserveGlobalState disabled
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function testCompileBlockGrandChildMustCompile_021_22()
|
||||||
|
{
|
||||||
|
$this->smarty->caching = true;
|
||||||
|
$this->smarty->cache_lifetime = 1000;
|
||||||
$tpl2 = $this->smarty->createTemplate('extends:021_parent.tpl|021_child.tpl|021_grandchild.tpl');
|
$tpl2 = $this->smarty->createTemplate('extends:021_parent.tpl|021_child.tpl|021_grandchild.tpl');
|
||||||
$this->assertTrue($tpl2->isCached());
|
$this->assertTrue($tpl2->isCached());
|
||||||
$result = $this->smarty->fetch($tpl2);
|
$result = $this->smarty->fetch($tpl2);
|
||||||
@@ -151,7 +171,17 @@ class ExtendsResourceTest extends PHPUnit_Smarty
|
|||||||
$this->assertFalse($tpl->isCached());
|
$this->assertFalse($tpl->isCached());
|
||||||
$result = $this->smarty->fetch($tpl);
|
$result = $this->smarty->fetch($tpl);
|
||||||
$this->assertContains('Grandchild Page Title', $result);
|
$this->assertContains('Grandchild Page Title', $result);
|
||||||
$this->smarty->_cache['template_objects'] = null;
|
}
|
||||||
|
/**
|
||||||
|
* test grandchild/child/parent dependency test3
|
||||||
|
* @runInSeparateProcess
|
||||||
|
* @preserveGlobalState disabled
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function testCompileBlockGrandChildMustCompile_021_32()
|
||||||
|
{
|
||||||
|
$this->smarty->caching = true;
|
||||||
|
$this->smarty->cache_lifetime = 1000;
|
||||||
$tpl2 = $this->smarty->createTemplate('extends:021_parent.tpl|021_child.tpl|021_grandchild.tpl');
|
$tpl2 = $this->smarty->createTemplate('extends:021_parent.tpl|021_child.tpl|021_grandchild.tpl');
|
||||||
$this->assertTrue($tpl2->isCached());
|
$this->assertTrue($tpl2->isCached());
|
||||||
$result = $this->smarty->fetch($tpl2);
|
$result = $this->smarty->fetch($tpl2);
|
||||||
@@ -175,10 +205,20 @@ class ExtendsResourceTest extends PHPUnit_Smarty
|
|||||||
$this->assertFalse($tpl->isCached());
|
$this->assertFalse($tpl->isCached());
|
||||||
$result = $this->smarty->fetch($tpl);
|
$result = $this->smarty->fetch($tpl);
|
||||||
$this->assertContains('Grandchild Page Title', $result);
|
$this->assertContains('Grandchild Page Title', $result);
|
||||||
$this->smarty->_cache['template_objects'] = null;
|
}
|
||||||
$tpl2 = $this->smarty->createTemplate('extends:021_parent.tpl|021_child.tpl|021_grandchild.tpl');
|
/**
|
||||||
$this->assertTrue($tpl2->isCached());
|
* test grandchild/child/parent dependency test4
|
||||||
$result = $this->smarty->fetch($tpl2);
|
* @runInSeparateProcess
|
||||||
|
* @preserveGlobalState disabled
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function testCompileBlockGrandChildMustCompile_021_42()
|
||||||
|
{
|
||||||
|
$this->smarty->caching = true;
|
||||||
|
$this->smarty->cache_lifetime = 1000;
|
||||||
|
$tpl = $this->smarty->createTemplate('extends:021_parent.tpl|021_child.tpl|021_grandchild.tpl');
|
||||||
|
$this->assertFalse($tpl->isCached());
|
||||||
|
$result = $this->smarty->fetch($tpl);
|
||||||
$this->assertContains('Grandchild Page Title', $result);
|
$this->assertContains('Grandchild Page Title', $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -529,7 +529,18 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
|
|||||||
$this->assertFalse($tpl->isCached());
|
$this->assertFalse($tpl->isCached());
|
||||||
$result = $this->smarty->fetch($tpl);
|
$result = $this->smarty->fetch($tpl);
|
||||||
$this->assertContains('Grandchild Page Title', $result);
|
$this->assertContains('Grandchild Page Title', $result);
|
||||||
$this->smarty->_cache['template_objects'] = null;
|
}
|
||||||
|
/**
|
||||||
|
* test grandchild/child/parent dependency test3
|
||||||
|
* @runInSeparateProcess
|
||||||
|
* @preserveGlobalState disabled
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function testCompileBlockGrandChildMustCompile_021_32()
|
||||||
|
{
|
||||||
|
$this->smarty->setCompileDir('./templates_c/mustcompile');
|
||||||
|
$this->smarty->caching = true;
|
||||||
|
$this->smarty->cache_lifetime = 1000;
|
||||||
$tpl2 = $this->smarty->createTemplate('021_grandchild.tpl');
|
$tpl2 = $this->smarty->createTemplate('021_grandchild.tpl');
|
||||||
$this->assertTrue($tpl2->isCached());
|
$this->assertTrue($tpl2->isCached());
|
||||||
$result = $this->smarty->fetch($tpl2);
|
$result = $this->smarty->fetch($tpl2);
|
||||||
@@ -553,7 +564,18 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
|
|||||||
$this->assertFalse($tpl->isCached());
|
$this->assertFalse($tpl->isCached());
|
||||||
$result = $this->smarty->fetch($tpl);
|
$result = $this->smarty->fetch($tpl);
|
||||||
$this->assertContains('Grandchild Page Title', $result);
|
$this->assertContains('Grandchild Page Title', $result);
|
||||||
$this->smarty->_cache['template_objects'] = null;
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* test grandchild/child/parent dependency test4
|
||||||
|
* @runInSeparateProcess
|
||||||
|
* @preserveGlobalState disabled
|
||||||
|
*/
|
||||||
|
public function testCompileBlockGrandChildMustCompile_021_42()
|
||||||
|
{
|
||||||
|
$this->smarty->setCompileDir('./templates_c/mustcompile');
|
||||||
|
$this->smarty->caching = true;
|
||||||
|
$this->smarty->cache_lifetime = 1000;
|
||||||
$tpl2 = $this->smarty->createTemplate('021_grandchild.tpl');
|
$tpl2 = $this->smarty->createTemplate('021_grandchild.tpl');
|
||||||
$this->assertTrue($tpl2->isCached());
|
$this->assertTrue($tpl2->isCached());
|
||||||
$result = $this->smarty->fetch($tpl2);
|
$result = $this->smarty->fetch($tpl2);
|
||||||
|
Reference in New Issue
Block a user