On OS X, Zend Server comes with a PHP binary at /usr/local/zend/bin/php. For running things on the CLI, however, one must go through /user/local/zend/bin/php-cli, which is just a shell script that runs a secondary Zend script to configure some library paths and such before turning around and running the basic /usr/local/zend/bin/php.
What's the best way to get PhpStorm to use the /usr/local/zend/bin/php-cli script as a replacement for PHP when running things in CLI mode (e.g., PHPUnit)? The interpreter setting only lets me point to the directory, not to the specific php binary. Alternatively, is there something else I can do to make PhpStorm use the Zend Server version of PHP without producing various library errors?