[PHP-DEV] Unable to unit test code containing *_uploaded_file()

2008-04-23 Thread Piotr Czachur
there would be no need to change existing application code to add unit tests, and what's more important it would not leak to security risk. Regards, Piotr Czachur -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Unable to unit test code containing *_uploaded_file()

2008-05-06 Thread Piotr Czachur
2008/4/23 Piotr Czachur [EMAIL PROTECTED]: Hello! I use PHPUnit for unit testing of my application (but this issue is independent of PHPUnit). Tests are run from command line so it's not way (that I can imagine) to simulate file upload, because app code uses is_uploaded_file() to check