Daniel Hofstetter said:
>
> You may try to use loadController('posts'); instead of require_once.

Unfortunately it's not working. I'm getting the same error.

The actual code is here[1]

Thanks
Davide

[1]
<?php
/*
 * app/test/app/controllers/posts_controller.test.php
 */
//require_once(APP . "/controllers/posts_controller.php");

class PostsControllerTest extends UnitTestCase{
   function testIndex(){
      loadController("posts");
      $posts =& new PostsController();

      print_r($posts);

      $posts->index();
   }
}
?>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to