title: jasmine angularjs testing - Argument 'PhoneListCtrl' is not a function, got undefined
body: <p>When running an angularjs + Jasmine + Karma test, I got following error:
  <img src="https://i.stack.imgur.com/Vy0Jt.png" alt="enter image description here"></p>
  
  <p>My test script is:</p>
  
  <pre><code>describe('PhoneCat controllers', function() {
  
    describe('PhoneListCtrl', function(){
  
      it('should create "phones" model with 3 phones', inject(function($controller) {
        var scope = {},
            ctrl = $controller('PhoneListCtrl', { $scope: scope });
  
        expect(scope.phones.length).toBe(3);
      }));
    });
  });
  </code></pre>
  
  <p>This code is just a copy from official AngularJS tutorial here:
  <a href="http://code.angularjs.org/1.2.0-rc.3/docs/tutorial/step_02" rel="noreferrer">http://code.angularjs.org/1.2.0-rc.3/docs/tutorial/step_02</a></p>
  
  <p>Here is part of my karma.conf.js file:</p>
  
  <pre><code>// list of files / patterns to load in the browser
  files: [
  
      'js/bower_components/angular/angular.js',
      'js/bower_components/angular/ngular-mocks.js',
      'js/app/controllers.js',
      'test/unit/*.js'
  ],
  </code></pre>
  
  <p>The error is <strong>PhoneListCtrl</strong> not define, but I beleive it is defined and loaded in the above code. What do you think is the problem? Thanks!</p>