Definition at line 12 of file ArrayTest.php.
◆ testGetCacheKey()
Twig_Tests_Loader_ArrayTest::testGetCacheKey |
( |
| ) |
|
Definition at line 45 of file ArrayTest.php.
References $loader, and array.
49 $this->assertEquals(
'foo:bar',
$loader->getCacheKey(
'foo'));
Create styles array
The data for the language used.
Loads a template from an array.
◆ testGetCacheKeyIsProtectedFromEdgeCollisions()
Twig_Tests_Loader_ArrayTest::testGetCacheKeyIsProtectedFromEdgeCollisions |
( |
| ) |
|
Definition at line 63 of file ArrayTest.php.
References $loader, and array.
70 $this->assertEquals(
'foo__:bar',
$loader->getCacheKey(
'foo__'));
71 $this->assertEquals(
'foo:__bar',
$loader->getCacheKey(
'foo'));
Create styles array
The data for the language used.
Loads a template from an array.
◆ testGetCacheKeyWhenTemplateDoesNotExist()
Twig_Tests_Loader_ArrayTest::testGetCacheKeyWhenTemplateDoesNotExist |
( |
| ) |
|
◆ testGetCacheKeyWhenTemplateHasDuplicateContent()
Twig_Tests_Loader_ArrayTest::testGetCacheKeyWhenTemplateHasDuplicateContent |
( |
| ) |
|
Definition at line 52 of file ArrayTest.php.
References $loader, and array.
59 $this->assertEquals(
'foo:bar',
$loader->getCacheKey(
'foo'));
60 $this->assertEquals(
'baz:bar',
$loader->getCacheKey(
'baz'));
Create styles array
The data for the language used.
Loads a template from an array.
◆ testGetSource()
Twig_Tests_Loader_ArrayTest::testGetSource |
( |
| ) |
|
legacy
Definition at line 17 of file ArrayTest.php.
References $loader, and array.
21 $this->assertEquals(
'bar',
$loader->getSource(
'foo'));
Create styles array
The data for the language used.
Loads a template from an array.
◆ testGetSourceContextWhenTemplateDoesNotExist()
Twig_Tests_Loader_ArrayTest::testGetSourceContextWhenTemplateDoesNotExist |
( |
| ) |
|
◆ testGetSourceWhenTemplateDoesNotExist()
Twig_Tests_Loader_ArrayTest::testGetSourceWhenTemplateDoesNotExist |
( |
| ) |
|
◆ testIsFresh()
Twig_Tests_Loader_ArrayTest::testIsFresh |
( |
| ) |
|
Definition at line 92 of file ArrayTest.php.
References $loader, array, and time.
Create styles array
The data for the language used.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
Loads a template from an array.
◆ testIsFreshWhenTemplateDoesNotExist()
Twig_Tests_Loader_ArrayTest::testIsFreshWhenTemplateDoesNotExist |
( |
| ) |
|
Twig_Error_Loader
Definition at line 101 of file ArrayTest.php.
References $loader, array, and time.
Create styles array
The data for the language used.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
Loads a template from an array.
◆ testSetTemplate()
Twig_Tests_Loader_ArrayTest::testSetTemplate |
( |
| ) |
|
Definition at line 84 of file ArrayTest.php.
References $loader, and array.
87 $loader->setTemplate(
'foo',
'bar');
89 $this->assertEquals(
'bar',
$loader->getSourceContext(
'foo')->getCode());
Create styles array
The data for the language used.
Loads a template from an array.
◆ testTemplateReference()
Twig_Tests_Loader_ArrayTest::testTemplateReference |
( |
| ) |
|
Definition at line 108 of file ArrayTest.php.
References $loader, $name, array, and time.
120 $this->addToAssertionCount(1);
Create styles array
The data for the language used.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
Loads a template from an array.
The documentation for this class was generated from the following file:
- libs/composer/vendor/twig/twig/test/Twig/Tests/Loader/ArrayTest.php