@dataProvider getGetAttributeWithTemplateAsObject
public function testGetAttributeWithTemplateAsObject($useExt) {
$template = new Twig_TemplateTest(new Twig_Environment(), $useExt);
$template1 = new Twig_TemplateTest(new Twig_Environment(), false);
$this
->assertInstanceof('Twig_Markup', $template
->getAttribute($template1, 'string'));
$this
->assertEquals('some_string', $template
->getAttribute($template1, 'string'));
$this
->assertInstanceof('Twig_Markup', $template
->getAttribute($template1, 'true'));
$this
->assertEquals('1', $template
->getAttribute($template1, 'true'));
$this
->assertInstanceof('Twig_Markup', $template
->getAttribute($template1, 'zero'));
$this
->assertEquals('0', $template
->getAttribute($template1, 'zero'));
$this
->assertNotInstanceof('Twig_Markup', $template
->getAttribute($template1, 'empty'));
$this
->assertSame('', $template
->getAttribute($template1, 'empty'));
}