make resource arrays automatically filter out non-resources
use any 4.x version of phpunit