Lines Matching refs:context
11 private $context; variable in App\\Tests\\Unit\\Template\\ContextTest
15 $this->context = new Context(TEST_FIXTURES_DIRECTORY . '/templates');
20 $this->context->start('foo');
22 $this->context->end('foo');
24 $this->assertEquals($this->context->block('foo'), 'bar');
26 $this->context->append('foo');
28 $this->context->end('foo');
30 $this->assertEquals($this->context->block('foo'), 'barbaz');
32 $this->context->start('foo');
34 $this->context->end('foo');
36 $this->assertEquals($this->context->block('foo'), 'overridden');
42 $this->context->include('includes/banner.php');
50 $variable = $this->context->include('includes/variable.php');
60 $this->context->include('includes/variable.php', ['var1', 'var2', 'var3']);
68 $this->assertEquals($escaped, $this->context->e($malicious));
76 $this->assertEquals($noHtml, $this->context->noHtml($malicious));