Avoid simplexml_load_file warning when config path is a directory

When using a directory for phpunit configuration path, with WARNING display enabled, it creates a multiple warnings on console output, thus messing report up.

I just added a new test to check if file is a directory, and if so then do not call the simple_load_file function on the directory.