title: testAction() function returns null on debug() in CakePhp testing
body: <p>I was trying to learn how to use unit testing in CakePhp, I'm trying to write a controller test. I read about testAction() and debug() function, but It doesn't work for me, I mean, the test method passes, but the debug() returns null (because testAction does)</p>
  
  <p>This is my code: </p>
  
  <pre><code>&lt;?php
  App::uses('Controller', 'Controller');
  App::uses('View', 'View');
  App::uses('PostsController', 'Controller');
  
  class PostsControllerTest extends ControllerTestCase {
      public function setUp() {
         parent::setUp();
         $Controller = new Controller();
         $View = new View($Controller);
         $this-&gt;Posts = new PostsController($View);
      }
  
      public function testIndex() {
            $result = $this-&gt;testAction('Posts/Index');
          debug($result);        
  
      }
  }
  </code></pre>
  
  <p>Posts/index controller returns a list of all posts stored in the DB. </p>