title: PHP Parse error: syntax error, unexpected ':', expecting ';' or '{'
body: <p>I'm try playing with php7. I have installed <a href="https://github.com/rlerdorf/php7dev" rel="nofollow noreferrer">https://github.com/rlerdorf/php7dev</a> and connected through phpstorm. 
  I'm trying use new feature like this:</p>
  
  <pre><code>&lt;?php
  namespace Kata;
  
  class StringCalculator
  {
      public function add(string $parameters): int {
          return 0;
      }
  }
  </code></pre>
  
  <p>then I try to test it like this:</p>
  
  <pre><code>&lt;?php
  namespace Kata;
  
  class StringCalculatorTest extends \PHPUnit_Framework_TestCase
  {
      public function testAddEmptyString()
      {
          $calc = new StringCalculator();
          $this-&gt;assertSame(0, $calc-&gt;add(''));
      }
  }
  </code></pre>
  
  <p>and I launch with phpunit, unfortunately I have </p>
  
  <blockquote>
    <p>PHP Parse error:  syntax error, unexpected ':', expecting ';' or '{'</p>
  </blockquote>
  
  <p>Probably I haven't installed php7 properly but it seems to be ok when I php -v</p>
  
  <blockquote>
    <p>PHP 7.0.0-dev (cli) (built: May 25 2015 16:34:33) (DEBUG) Copyright
    (c) 1997-2015 The PHP Group Zend Engine v3.0.0-dev, Copyright (c)
    1998-2015 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies</p>
  </blockquote>
  
  <p>UPDATE</p>
  
  <p>Problem is not in installation/configuration php7 (I think), because when I run it from cli like this:</p>
  
  <pre><code>&lt;?php
      $calc = new Kata\StringCalculator();
      var_dump($calc-&gt;add(''));
  </code></pre>
  
  <p>outputs <code>int(0)</code> and no error.</p>
  
  <p>So maybe the problem is in phpunit?</p>