'null' => null,
'1' => 1,
'bar' => true,
+ '09' => '09',
+ '+4' => '+4',
);
$objectArray = new Twig_TemplateArrayAccessObject();
array(true, 1, 1.0),
array(true, null, 'null'),
array(true, true, 'bar'),
+ array(true, '09', '09'),
+ array(true, '+4', '+4'),
);
$testObjects = array(
// array(object, type of fetch)
foreach ($basicTests as $test) {
// properties cannot be numbers
if (($testObject[0] instanceof stdClass || $testObject[0] instanceof Twig_TemplatePropertyObject) && is_numeric($test[2])) {
+ continue;
+ }
+
+ if ('+4' === $test[2] && $methodObject === $testObject[0]) {
continue;
}
'null' => null,
'1' => 1,
'bar' => true,
+ '09' => '09',
+ '+4' => '+4',
);
public function offsetExists($name)
'null' => null,
'1' => 1,
'bar' => true,
+ '09' => '09',
+ '+4' => '+4',
);
protected $protected = 'protected';
return 1;
}
+ public function get09()
+ {
+ return '09';
+ }
+
public function getZero()
{
return 0;