split tests because of hhvm

This commit is contained in:
uwetews
2015-10-20 01:21:37 +02:00
parent 03daa2880c
commit 4c24ec6e20
2 changed files with 72 additions and 10 deletions

View File

@@ -103,7 +103,17 @@ class ExtendsResourceTest extends PHPUnit_Smarty
$this->assertFalse($tpl->isCached());
$result = $this->smarty->fetch($tpl);
$this->assertContains('Grandchild Page Title', $result);
$this->smarty->_cache['template_objects'] = null;
}
/**
* 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());
$result = $this->smarty->fetch($tpl2);
@@ -127,7 +137,17 @@ class ExtendsResourceTest extends PHPUnit_Smarty
$this->assertFalse($tpl->isCached());
$result = $this->smarty->fetch($tpl);
$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');
$this->assertTrue($tpl2->isCached());
$result = $this->smarty->fetch($tpl2);
@@ -151,7 +171,17 @@ class ExtendsResourceTest extends PHPUnit_Smarty
$this->assertFalse($tpl->isCached());
$result = $this->smarty->fetch($tpl);
$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');
$this->assertTrue($tpl2->isCached());
$result = $this->smarty->fetch($tpl2);
@@ -175,10 +205,20 @@ class ExtendsResourceTest extends PHPUnit_Smarty
$this->assertFalse($tpl->isCached());
$result = $this->smarty->fetch($tpl);
$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());
$result = $this->smarty->fetch($tpl2);
}
/**
* test grandchild/child/parent dependency test4
* @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);
}

View File

@@ -529,7 +529,18 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
$this->assertFalse($tpl->isCached());
$result = $this->smarty->fetch($tpl);
$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');
$this->assertTrue($tpl2->isCached());
$result = $this->smarty->fetch($tpl2);
@@ -553,7 +564,18 @@ class CompileBlockExtendsTest extends PHPUnit_Smarty
$this->assertFalse($tpl->isCached());
$result = $this->smarty->fetch($tpl);
$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');
$this->assertTrue($tpl2->isCached());
$result = $this->smarty->fetch($tpl2);