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, ''));
}
}