I am getting this exception when trying to run my PHP unit tests:
Fatal error: Call to undefined function openssl_random_pseudo_bytes()
Your version of PHP wasn't compiled with the openssl module. If you are building from source, add the module like so:
openssl
cd /path/to/php-5.4/ ./configure --with-openssl