title: Symfony 3 Looking for Class in Wrong Place
body: <p>I wrote some code in a Symfony 3 project that was working last night, but now when I execute <code>sf server:run</code>, it throws the following error:</p>
  
  <pre><code>[RuntimeException] 
  The autoloader expected class "InventoryBundle\InventoryBundle" to be defined in file"/Users/parth/Sites/debate-inventory/src/InventoryBundle/Tests/InventoryBundle.php". The file was found but the class was not in it, the class name or namespace probably has a typo.   
  </code></pre>
  
  <p>I did some digging, and in the root directory of my bundle I have a file called <code>InventoryBundle.php</code>, which contains:</p>
  
  <pre><code>&lt;?php
  
  namespace InventoryBundle;
  
  use Symfony\Component\HttpKernel\Bundle\Bundle;
  
  class InventoryBundle extends Bundle
  {
  }
  </code></pre>
  
  <p>However, the system keeps looking for <code>Tests/InventoryBundle.php</code>, and I recently discovered there is a file there. The file contains:</p>
  
  <pre><code>&lt;?php
  
  namespace InventoryBundle\Tests;
  
  use Symfony\Component\HttpKernel\Bundle\Bundle;
  
  class InventoryBundle extends Bundle
  {
  }
  </code></pre>
  
  <p>I've never used the testing service before so I don't know what's going on.</p>
  
  <p>Thanks in advance!</p>