title: PHP namespace Error. Class not found within composer project
body: <p>Can someone please point me in the right direction.  I have downloaded a GIT project Namshi/JOSE which is a JWT signing and verification library.  I have  a directory structure shown below.</p>
  
  <p><a href="https://i.stack.imgur.com/KRGGi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KRGGi.png" alt="directory structure"></a></p>
  
  <p>All my unit tests (inside the folder <em>tests</em> work perfectly, so the <em>composer.json</em> and <em>bootstrap.php</em> files are okay.  But when I try and add my own test, in the folder <em>myTests->simpleTest.php</em> as below what ever I try I can't get the namespace to resolve the class <em>SimpleJWS</em>.   The namespace for the library is <em>Namshi/JOSE</em>.  My simple test calling code is:</p>
  
  <pre><code>    &lt;?php
  
        use Namshi\JOSE\SimpleJWS;
        //require_once ("../src/Namshi/JOSE/SimpleJWS.php");
  
        $jws  = new SimpleJWS(array(
         'alg' =&gt; 'RS256'
         ));
  </code></pre>
  
  <p>The error text is: <code>Fatal error: Class 'Namshi\JOSE\SimpleJWS' not found</code>.  The psr-4 statements are as follows:</p>
  
  <pre><code>    "autoload": {
      "psr-4": {
      "Namshi\\JOSE\\":  "src/Namshi/JOSE/"
  
      }
      },
      "autoload-dev": {
      "psr-4": {
          "Namshi\\JOSE\\Test\\":  "tests/Namshi/JOSE/Test/"
  
      }
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>