public function Twig_Tests_Extension_CoreTest::testRandomFunctionReturnsAsIs in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/test/Twig/Tests/Extension/CoreTest.php \Twig_Tests_Extension_CoreTest::testRandomFunctionReturnsAsIs()
File
- vendor/
twig/ twig/ test/ Twig/ Tests/ Extension/ CoreTest.php, line 70
Class
Code
public function testRandomFunctionReturnsAsIs() {
$this
->assertSame('', twig_random(new Twig_Environment($this
->getMock('Twig_LoaderInterface')), ''));
$this
->assertSame('', twig_random(new Twig_Environment($this
->getMock('Twig_LoaderInterface'), array(
'charset' => null,
)), ''));
$instance = new stdClass();
$this
->assertSame($instance, twig_random(new Twig_Environment($this
->getMock('Twig_LoaderInterface')), $instance));
}