projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
3485ee7
)
Fix NativeExtensionTest
author
Charles
<char101@ui.ac.id>
Thu, 20 Sep 2012 11:35:44 +0000 (18:35 +0700)
committer
Charles
<char101@ui.ac.id>
Thu, 20 Sep 2012 11:35:44 +0000 (18:35 +0700)
test/Twig/Tests/NativeExtensionTest.php
patch
|
blob
|
history
diff --git
a/test/Twig/Tests/NativeExtensionTest.php
b/test/Twig/Tests/NativeExtensionTest.php
index
936c127
..
6983389
100644
(file)
--- a/
test/Twig/Tests/NativeExtensionTest.php
+++ b/
test/Twig/Tests/NativeExtensionTest.php
@@
-13,14
+13,17
@@
class Twig_Tests_NativeExtensionTest extends PHPUnit_Framework_TestCase
{
public function testGetProperties()
{
- $loader = new Twig_Loader_String('{{ d1.date }}{{ d2.date }}');
-
- $twig = new Twig_Environment($loader, array(
+ $twig = new Twig_Environment(new Twig_Loader_String(), array(
'debug' => true,
'cache' => false,
- 'autoescape' => array($this, 'escapingStrategyCallback'),
+ 'autoescape' => false
));
+ $twig->render('{{ d1.date }}{{ d2.date }}', array(
+ 'd1' => new DateTime,
+ 'd2' => new DateTime
+ ));
+
// If it fails, PHP will crash.
}
}