Definition at line 12 of file ArrayTest.php.
◆ testGetCacheKey()
Twig_Tests_Loader_ArrayTest::testGetCacheKey |
( |
| ) |
|
Definition at line 45 of file ArrayTest.php.
49 $this->assertEquals(
'foo:bar', $loader->getCacheKey(
'foo'));
Loads a template from an array.
◆ testGetCacheKeyIsProtectedFromEdgeCollisions()
Twig_Tests_Loader_ArrayTest::testGetCacheKeyIsProtectedFromEdgeCollisions |
( |
| ) |
|
Definition at line 63 of file ArrayTest.php.
70 $this->assertEquals(
'foo__:bar', $loader->getCacheKey(
'foo__'));
71 $this->assertEquals(
'foo:__bar', $loader->getCacheKey(
'foo'));
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.
59 $this->assertEquals(
'foo:bar', $loader->getCacheKey(
'foo'));
60 $this->assertEquals(
'baz:bar', $loader->getCacheKey(
'baz'));
Loads a template from an array.
◆ testGetSource()
Twig_Tests_Loader_ArrayTest::testGetSource |
( |
| ) |
|
legacy
Definition at line 17 of file ArrayTest.php.
21 $this->assertEquals(
'bar', $loader->getSource(
'foo'));
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.
95 $this->assertTrue($loader->isFresh(
'foo', time()));
Loads a template from an array.
◆ testIsFreshWhenTemplateDoesNotExist()
Twig_Tests_Loader_ArrayTest::testIsFreshWhenTemplateDoesNotExist |
( |
| ) |
|
◆ testSetTemplate()
Twig_Tests_Loader_ArrayTest::testSetTemplate |
( |
| ) |
|
Definition at line 84 of file ArrayTest.php.
87 $loader->setTemplate(
'foo',
'bar');
89 $this->assertEquals(
'bar', $loader->getSourceContext(
'foo')->getCode());
Loads a template from an array.
◆ testTemplateReference()
Twig_Tests_Loader_ArrayTest::testTemplateReference |
( |
| ) |
|
Definition at line 108 of file ArrayTest.php.
References $name.
113 $loader->getCacheKey(
$name);
114 $loader->getSourceContext(
$name);
115 $loader->isFresh(
$name, time());
116 $loader->setTemplate(
$name,
'foo:bar');
120 $this->addToAssertionCount(1);
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