I am trying to set up phpunit on my server. This is what I did so far...
- SSH into Apache server via PuTTY
- Ran command...
cd /path/to - Ran command...
wget http://pear.phpunit.de/get/phpunit.phar - Ran command...
chmod +x phpunit.phar - Ran command...
/path/to/phpunit.phar
The error I received is...
PHP Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /path/to/phpunit.phar on line 6
The first 8 lines of the phpunit.phar file are...
#!/usr/bin/env php
<?php
define('__PHPUNIT_PHAR__', realpath($GLOBALS['_SERVER']['SCRIPT_NAME']));
spl_autoload_register(
function ($class)
{
static $classes = NULL;
Any ideas what I'm doing wrong?