public function testGetScenarios()
 {
     $raw = ['test1' => 'value1', 'test2' => 'value2', 'test3' => 'value3'];
     $context = new Context($raw);
     $this->assertSame('value2', $context->get('test2'));
     $this->assertSame(null, $context->get('test4'));
     $this->assertSame($raw, $context->get());
 }
 public function testContextIsMergedOnRenderIfProvided()
 {
     $realTwig = Mockery::mock('Twig_Template', ['render' => null]);
     $env = Mockery::mock('Twig_Environment', ['loadTemplate' => $realTwig]);
     $context = new Context();
     $twig = new LazyTwig($env, $context, 'path/to/template/file');
     $twig->render(['goobypls' => 'test']);
     $this->assertSame('test', $context->get('goobypls'));
 }