protected function assertFilenameValid($filename)
    {
        $result = new ValidationResult();
        $this->validate($result, $filename);
        if (!$result->isValid()) {
            throw new ValidationException($result);
        }
    }
protected function assertFilenameValid($filename)
    {
        $result = new ValidationResult();
        $this->validate($result, $filename);
        if (!$result->isValid()) {
            throw new ValidationException($result);
        }
    }
protected function assertFilenameValid ( $ filename ) { $ result = new ValidationResult ( ) ; $ this -> validate ( $ result , $ filename ) ; if ( ! $ result -> isValid ( ) ) { throw new ValidationException ( $ result ) ; } }
Check filename, and raise a ValidationException if invalid

@param string $filename
@throws ValidationException
Check filename and raise a ValidationException if invalid