protected function getBinaryFileValue($size)
{
$this->markTestSkipped('BinaryFile field type does not use this validator anymore.');
$value = new BinaryFileValue($this->getMock('eZ\\Publish\\API\\Repository\\IOServiceInterface'));
$value->file = new BinaryFile(array('size' => $size));
return $value;
}