add test for FileDescriptor.php
finalizing FileDescriptorTest while finishing testGetAllErrors()
Merge pull request #1370 from slaubi/FileDescriptorTest

File descriptor test