title: Zend Framework 2 tutorial: Module (Application) could not be initialized
body: <p>I am following the official Zend Framework 2 tutorial for version 2.1. In the <a href="http://framework.zend.com/manual/2.1/en/user-guide/unit-testing.html">Unit Testing</a> section, where I am supposed to run phpunit in module/Application/test I am running into the following problem:</p>
  
  <pre><code>user@xubuntu1210:~/Desktop/zf2-tutorial/module/Application/test$ phpunit
  PHPUnit 3.7.13 by Sebastian Bergmann.
  
  Configuration read from /home/user/Desktop/zf2-tutorial/module/Application/test/phpunit.xml.dist
  
  E
  
  Time: 0 seconds, Memory: 4.00Mb
  
  There was 1 error:
  
  1) ApplicationTest\Controller\IndexControllerTest::testIndexActionCanBeAccessed
  Zend\ModuleManager\Exception\RuntimeException: Module (Application) could not be initialized.
  
  /home/user/Desktop/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/ModuleManager/ModuleManager.php:140
  /home/user/Desktop/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/ModuleManager/ModuleManager.php:81
  /home/user/Desktop/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:460
  /home/user/Desktop/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php:204
  /home/user/Desktop/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/ModuleManager/ModuleManager.php:100
  /home/user/Desktop/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php:239
  /home/user/Desktop/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/Test/PHPUnit/Controller/AbstractControllerTestCase.php:146
  /home/user/Desktop/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/Test/PHPUnit/Controller/AbstractControllerTestCase.php:173
  /home/user/Desktop/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/Test/PHPUnit/Controller/AbstractControllerTestCase.php:193
  /home/user/Desktop/zf2-tutorial/vendor/zendframework/zendframework/library/Zend/Test/PHPUnit/Controller/AbstractControllerTestCase.php:236
  /home/user/Desktop/zf2-tutorial/module/Application/test/ApplicationTest/Controller/IndexControllerTest.php:20
  
  FAILURES!
  Tests: 1, Assertions: 0, Errors: 1.
  </code></pre>
  
  <p>I copied the contents of IndexControllerTest.php from the tutorial. </p>
  
  <pre><code>&lt;?php
  
  namespace ApplicationTest\Controller;
  
  use Zend\Test\PHPUnit\Controller\AbstractHttpControllerTestCase;
  
  class IndexControllerTest extends AbstractHttpControllerTestCase
  {
      public function setUp()
      {
          $this-&gt;setApplicationConfig(
              include '/home/user/Desktop/zf2-tutorial/config/application.config.php'
          );
          parent::setUp();
      }
  
      public function testIndexActionCanBeAccessed()
      {
          $this-&gt;dispatch('/'); // this is line 20
          $this-&gt;assertResponseStatusCode(200);
  
          $this-&gt;assertModule('application');
          $this-&gt;assertControllerName('application_index');
          $this-&gt;assertControllerClass('IndexController');
          $this-&gt;assertMatchedRouteName('home');
      }
  }
  </code></pre>
  
  <p>I have no clue why the application won't initialize and I would appreciate any pointers.</p>