public function createConfiguration($class = null, $name = null)
{
$config = $this->getMockBuilder('Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\ParamConverter')->setMethods(['getClass', 'getAliasName', 'getOptions', 'getName', 'allowArray', 'isOptional'])->disableOriginalConstructor()->getMock();
if ($name !== null) {
$config->expects($this->any())->method('getName')->will($this->returnValue($name));
}
if ($class !== null) {
$config->expects($this->any())->method('getClass')->will($this->returnValue($class));
}
return $config;
}