title: Cygwin issue when trying to run phpunit within Yii2
body: <p>I'm trying to run <code>phpunit</code> within a Yii2 basic installation but whenever I run <code>php vendor/bin/phpunit</code> from the command line I get this output:</p>
  
  <p><strong>Note:</strong> I am on Windows 7.</p>
  
  <pre><code>dir=$(d=${0%[/\\]*}; cd "$d"; cd "../phpunit/phpunit" &amp;&amp; pwd)
  
  # See if we are running in Cygwin by checking for cygpath program
  if command -v 'cygpath' &gt;/dev/null 2&gt;&amp;1; then
          # Cygwin paths start with /cygdrive/ which will break windows PHP,
          # so we need to translate the dir path to windows format. However
          # we could be using cygwin PHP which does not require this, so we
          # test if the path to PHP starts with /cygdrive/ rather than /usr/bin
          if [[ $(which php) == /cygdrive/* ]]; then
                  dir=$(cygpath -m "$dir");
          fi
  fi
  
  dir=$(echo $dir | sed 's/ /\ /g')
  "${dir}/phpunit" "$@"
  </code></pre>
  
  <p>Can anyone advise what the issue is here? I haven't used <code>phpunit</code> before so unsure what is happening.</p>