From 9c12486651924c22879bf220e62f8b6a49ea6328 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 30 Sep 2014 19:44:16 +0200 Subject: [PATCH] fixed some assertions --- test/Twig/Tests/Extension/CoreTest.php | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/Twig/Tests/Extension/CoreTest.php b/test/Twig/Tests/Extension/CoreTest.php index 15a5de4..b3b1cb0 100644 --- a/test/Twig/Tests/Extension/CoreTest.php +++ b/test/Twig/Tests/Extension/CoreTest.php @@ -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, '')); } } -- 1.7.2.5