fixed some assertions
authorFabien Potencier <fabien.potencier@gmail.com>
Tue, 30 Sep 2014 17:44:16 +0000 (19:44 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Tue, 30 Sep 2014 17:44:16 +0000 (19:44 +0200)
test/Twig/Tests/Extension/CoreTest.php

index 15a5de4..b3b1cb0 100644 (file)
@@ -134,19 +134,19 @@ class Twig_Tests_Extension_CoreTest extends PHPUnit_Framework_TestCase
     public function testTwigFirst()
     {
         $twig = new Twig_Environment();
-        $this->assertEquals('a',  twig_first($twig, 'abc'));
-        $this->assertEquals(1,  twig_first($twig, array(1, 2, 3)));
-        $this->assertEquals('', twig_first($twig, null));
-        $this->assertEquals('', twig_first($twig, ''));
+        $this->assertEquals('a', twig_first($twig, 'abc'));
+        $this->assertEquals(1, twig_first($twig, array(1, 2, 3)));
+        $this->assertSame('', twig_first($twig, null));
+        $this->assertSame('', twig_first($twig, ''));
     }
 
     public function testTwigLast()
     {
         $twig = new Twig_Environment();
-        $this->assertEquals('c',  twig_last($twig, 'abc'));
-        $this->assertEquals(3,  twig_last($twig, array(1, 2, 3)));
-        $this->assertEquals('', twig_last($twig, null));
-        $this->assertEquals('', twig_last($twig, ''));
+        $this->assertEquals('c', twig_last($twig, 'abc'));
+        $this->assertEquals(3, twig_last($twig, array(1, 2, 3)));
+        $this->assertSame('', twig_last($twig, null));
+        $this->assertSame('', twig_last($twig, ''));
     }
 }