Supported validator options are (array)allowedOrientations with one or two out of 'square', 'landcape' or 'portrait'. *Example*:: [at]Flow\Validate("$image", type="\Neos\Media\Validator\ImageOrientationValidator", options={ "allowedOrientations"={"square", "landscape"} }) this would refuse an image that is in portrait orientation, but allow landscape and square ones.
Наследование: extends Neos\Flow\Validation\Validator\AbstractValidator
 /**
  * @test
  * @dataProvider validatorTestsDataProvider
  * @param array $options
  * @param integer $imageOrientation (one of the ImageOrientation_* constants)
  * @param boolean $isValid
  */
 public function validatorTests(array $options, $imageOrientation, $isValid)
 {
     $validator = new ImageOrientationValidator($options);
     $image = $this->createMock(ImageInterface::class);
     $image->expects($this->any())->method('getOrientation')->will($this->returnValue($imageOrientation));
     $validationResult = $validator->validate($image);
     if ($isValid) {
         $this->assertFalse($validationResult->hasErrors());
     } else {
         $this->assertTrue($validationResult->hasErrors());
     }
 }