From 677d34c55b4033df03679232bb324b4099d738e0 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 28 Sep 2012 23:50:11 +0200 Subject: [PATCH] fixed CS --- test/Twig/Tests/NativeExtensionTest.php | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/test/Twig/Tests/NativeExtensionTest.php b/test/Twig/Tests/NativeExtensionTest.php index d828436..3fafd33 100644 --- a/test/Twig/Tests/NativeExtensionTest.php +++ b/test/Twig/Tests/NativeExtensionTest.php @@ -11,19 +11,19 @@ class Twig_Tests_NativeExtensionTest extends PHPUnit_Framework_TestCase { - public function testGetProperties() - { - $twig = new Twig_Environment(new Twig_Loader_String(), array( - 'debug' => true, - 'cache' => false, - 'autoescape' => false - )); + public function testGetProperties() + { + $twig = new Twig_Environment(new Twig_Loader_String(), array( + 'debug' => true, + 'cache' => false, + 'autoescape' => false + )); - $d1 = new DateTime; - $d2 = new DateTime; - $output = $twig->render('{{ d1.date }}{{ d2.date }}', compact('d1', 'd2')); + $d1 = new DateTime(); + $d2 = new DateTime(); + $output = $twig->render('{{ d1.date }}{{ d2.date }}', compact('d1', 'd2')); - // If it fails, PHP will crash. - $this->assertEquals($output, $d1->date . $d2->date); - } + // If it fails, PHP will crash. + $this->assertEquals($output, $d1->date . $d2->date); + } } -- 1.7.2.5