コード例 #1
0
ファイル: ParsingStateTest.php プロジェクト: bwaidelich/Fluid
 /**
  * @test
  */
 public function testGetLayoutName()
 {
     $context = new RenderingContext();
     $context->getVariableProvider()->add('layoutName', 'test');
     $result = $this->parsingState->getLayoutName($context);
     $this->assertEquals('test', $result);
 }
コード例 #2
0
ファイル: BooleanNodeTest.php プロジェクト: bwaidelich/Fluid
 /**
  * @param array $variables
  * @return RenderingContext
  */
 protected function getDummyRenderingContextWithVariables(array $variables)
 {
     $context = new RenderingContext();
     $context->getVariableProvider()->setSource($variables);
     return $context;
 }