return $c;
} public function testValidateFileNameThrowsExceptionIfFileNameIsEmpty(): void
{ $this->
expectException(MediaException::
class);
$this->
expectExceptionMessage('A valid filename must be provided.'
);
$validator =
new FileNameValidator();
$validator->
validateFileName(''
);
} public function testValidateFileNameThrowsIfFileNameIsOnlyDots(): void
{ $this->
expectException(MediaException::
class);
$this->
expectExceptionMessage('Filename must not start with a "." (dot).'
);
$validator =
new FileNameValidator();
$validator->
validateFileName('..'
);
}