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