title: PHPUnit test error, cannot find class
body: <p>I'm new in PHPUnit and unit-testing, so I was install PHPUnit and phar via composer and everything had been going fine until I was try to start my simple test. I'm using PhpStorm where I can see all classes were autoload, but when I trying to start my test I got an error: </p>
  
  <pre><code>Fatal error: Class 'PharIo\Manifest\Simple' not found in C:\xampp\htdocs\mydocs\
  </code></pre>
  
  <p>I don't understand why he is looking for It in folder upper than PHPUnit is exists ? </p>
  
  <p>I was trying to configure autoload section in composer.json and checking settings in phpunit.xml but nothing works.</p>
  
  <p><strong>Add:</strong></p>
  
  <p>I have to reinstall PHPUnit without PharIO, so now I have a little bit of progress, now I have a situation where I can test my class if I make require_once line with a name of the tested class. It looks like:</p>
  
  <pre><code>require_once '../src/Simple.php';
  
  class SimpleTest extends PHPUnit_Framework_TestCase
  {
  
      public function testAdd() {
  
          $sum = new Simple();
  
          $this-&gt;assertEquals(5, $sum-&gt;add(2, 3));
  
      }
  
  }
  </code></pre>
  
  <p>So my simple class is:</p>
  
  <pre><code>class Simple {
  
  public function add($a, $b) {
  
      return (int) $a + (int) $b;
  
  }
  
  }
  </code></pre>
  
  <p>But, of course, I want to use namespaces. I try to make some changes based on this question: <a href="https://stackoverflow.com/questions/15710410/autoloading-classes-in-phpunit-using-composer-and-autoload-php">Autoloading classes in PHPUnit using Composer and autoload.php</a> (I was try even use that repo for test, but an error is still exists) but nothing works for me. I was try to edit my autoload section in the composer.json like this</p>
  
  <pre><code>"autoload": {
      "psr-4": {
          "app\\": "src/"
      }
  
  },
  </code></pre>
  
  <p>But an error is still exists, another words autoload cannot see It. I was create phpunit.xml and phpunit.dist.xml with a same settings</p>
  
  <pre><code>&lt;phpunit
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/3.7/phpunit.xsd"
          backupGlobals="true"
          backupStaticAttributes="false"
          colors="true"
          convertErrorsToExceptions="true"
          convertNoticesToExceptions="true"
          convertWarningsToExceptions="true"
          processIsolation="false"
          stopOnFailure="false"
          syntaxCheck="false"
          bootstrap="./tests/bootstrap.php"&gt;
  
          &lt;testsuites&gt;
                  &lt;testsuite name="The project's test suite"&gt;
                          &lt;directory&gt;./tests&lt;/directory&gt;
                  &lt;/testsuite&gt;
          &lt;/testsuites&gt;
  &lt;/phpunit&gt;
  </code></pre>
  
  <p>and I made tests/bootstrap.php too with</p>
  
  <pre><code>require_once '../vendor/autoload.php';
  </code></pre>