From: Fabien Potencier Date: Tue, 30 Sep 2014 17:44:16 +0000 (+0200) Subject: fixed some assertions X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=9c12486651924c22879bf220e62f8b6a49ea6328;p=web%2Fkonrad%2Ftwig.git fixed some assertions --- 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, '')); } }