Lines Matching refs:true

41         $env = new Environment(new ArrayLoader($templates), ['strict_variables' => true]);
118 [new Twig_TemplatePropertyObject(), 'defined', true],
120 [new Twig_TemplateMethodObject(), 'defined', true],
148 … $this->assertFalse($template->getAttribute($template1, 'env', [], Template::ANY_CALL, true));
149 …his->assertFalse($template->getAttribute($template1, 'environment', [], Template::ANY_CALL, true));
150 …ssertFalse($template->getAttribute($template1, 'getEnvironment', [], Template::METHOD_CALL, true));
151 …($template->getAttribute($template1, 'displayWithErrorHandling', [], Template::METHOD_CALL, true));
211 … $this->assertFalse($template->getAttribute($template1, 'env', [], Template::ANY_CALL, true));
212 …his->assertFalse($template->getAttribute($template1, 'environment', [], Template::ANY_CALL, true));
213 …ssertFalse($template->getAttribute($template1, 'getEnvironment', [], Template::METHOD_CALL, true));
214 …($template->getAttribute($template1, 'displayWithErrorHandling', [], Template::METHOD_CALL, true));
238 $this->assertSame('One', $array[true]);
247 …$this->assertSame('One', $template->getAttribute($array, true), 'true is treated as 1 when accessi…
271 …t($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock(), ['strict_variables' => true]));
295 … $this->assertEquals($defined, $template->getAttribute($object, $item, $arguments, $type, true));
303 …t($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock(), ['strict_variables' => true]));
305 … $this->assertEquals($defined, $template->getAttribute($object, $item, $arguments, $type, true));
324 'bar' => true,
347 [true, 'defined', 'defined'],
350 [true, 0, 'zero'],
351 [true, 1, 1],
352 [true, 1, 1.0],
353 [true, null, 'null'],
354 [true, true, 'bar'],
355 [true, 'baz', 'baz'],
356 [true, '09', '09'],
357 [true, '+4', '+4'],
391 [true, null, $propertyObject3, 'foo', [], $anyType],
396 [true, 'defined', $methodObject, 'defined', [], $methodType],
397 [true, 'defined', $methodObject, 'DEFINED', [], $methodType],
398 [true, 'defined', $methodObject, 'getDefined', [], $methodType],
399 [true, 'defined', $methodObject, 'GETDEFINED', [], $methodType],
400 [true, 'static', $methodObject, 'static', [], $methodType],
401 [true, 'static', $methodObject, 'getStatic', [], $methodType],
403 [true, '__call_undefined', $magicMethodObject, 'undefined', [], $methodType],
404 [true, '__call_UNDEFINED', $magicMethodObject, 'UNDEFINED', [], $methodType],
419 [true, 'a', $methodAndPropObject, 'a', [], $anyType],
420 [true, 'a', $methodAndPropObject, 'a', [], $methodType],
423 [true, 'b_prop', $methodAndPropObject, 'b', [], $anyType],
424 [true, 'b', $methodAndPropObject, 'B', [], $anyType],
425 [true, 'b', $methodAndPropObject, 'b', [], $methodType],
426 [true, 'b', $methodAndPropObject, 'B', [], $methodType],
436 [true, ['foo' => 'bar'], $arrayAccess, 'vars', [], $anyType],
455 …t($this->getMockBuilder('\Twig\Loader\LoaderInterface')->getMock(), ['strict_variables' => true]));
491 return true;
536 'bar' => true,
569 'bar' => true,
601 public $bar = true;
621 'bar' => true,
622 'foo' => true,
684 return true;
792 $node->setAttribute('disable_c_ext', true);