Ejemplo n.º 1
0
 public function testRender()
 {
     $this->propertyAccessor->expects($this->once())->method('getValue')->with($this->identicalTo($data = new \stdClass()), $this->identicalTo($path = 'path_value'))->will($this->returnValue($twigData = 'twig_data'));
     $this->twig->expects($this->once())->method('render')->with($this->identicalTo($template = 'template'), $this->identicalTo(array_merge($context = ['foo' => 'bar'], ['column' => $column = $this->createColumnMock(), 'data' => $twigData])))->will($this->returnValue($result = 'result'));
     $this->assertSame($result, $this->type->render($data, ['column' => $column, 'path' => $path, 'template' => $template, 'context' => $context]));
 }