zendframework/zf2 — pull request #3749 by Slamdunk (2013-02-11 08:15:58+00:00)
Title: Filter\File\RenameUpload: allow filtering multiple times

Calling:
```php
$form->isValid();
$form->getData();
```
now will *always* fail because `Zend\Filter\File\RenameUpload` attemps to `move_uploaded_file` the value two times, the first on validating and the second on retrieving.

I've added an internal cache to store the result, based on `$sourceFile`: this is safe because every field has it's own filter instance, and every PHP uploaded file has it's own unique name.

PS: I've deleted some
```php
$this->assertEquals($fileNoExt, $filter->getTarget());
$this->assertTrue($filter->getRandomize());
```
because those are already tested in `testOptions`, so no need to test them every time.