title: Using angular.module().controller() with tests
body: <p>I am create my controllers with the <code>module().controller()</code> syntax. </p>
  
  <pre><code>angular.module('App', []);
  
  angular.module('App').controller('PhoneListCtrl', ['$scope', function ($scope) {
      'use strict';
  
      $scope.phones = [
          {
              "name": "Nexus S",
              "snippet": "Fast just got faster with Nexus S."
          },
          {
              "name": "Motorola XOOM™ with Wi-Fi",
              "snippet": "The Next, Next Generation tablet."
          },
          {
              "name": "MOTOROLA XOOM™",
              "snippet": "The Next, Next Generation tablet."
          }
      ];
  }]);
  </code></pre>
  
  <p>That works great. But now I want to test it with jasmine, and my test respond with</p>
  
  <p><code>ReferenceError: AppController is not defined</code>.</p>
  
  <p>My test: </p>
  
  <pre><code>/* jasmine specs for controllers go here */
  describe('PhoneCat controllers', function () {
  
      describe('PhoneListCtrl', function () {
  
          it('should create "phones" model with 3 phones', function () {
              var scope = {},
                  ctrl = new PhoneListCtrl(scope);
  
              expect(scope.phones.length).toBe(3);
          });
      });
  });
  </code></pre>
  
  <p>If I change the controller to a classic function, the test works fine. </p>
  
  <p>What do I missing?</p>