<?php
namespace Symfony\Tests\Components\Form\Renderer;
abstract class RendererTestCase extends \PHPUnit_Framework_TestCase
{
protected function createFieldMock($name, $id, $displayedData)
$field = $this->getMock('Symfony\Components\Form\FieldInterface');
$field->expects($this->any())
->method('getDisplayedData')
->will($this->returnValue($displayedData));
->method('getName')
->will($this->returnValue($name));
->method('getId')
->will($this->returnValue($id));
return $field;
}