Fix bug and tests on HHVM
bug #31 Fix bug and tests on HHVM (jeremy-derusse)

This PR was merged into the master branch.

Discussion
----------

Fix bug and tests on HHVM

Also replace `\Phar::running()` by `0 === stripos(__FILE__, 'phar://')`
because it's not supported in hhvm: http://docs.hhvm.com/manual/en/phar.running.php

Commits
-------

cc8bcdb Fix bug and tests on HHVM