You can simplify the test a lot, just put it like (see the use of
loadController() instead of all the junk I've just given you):

uses('controller' . DS . 'controller');

loadController('Users');

class UsersControllerTest extends UnitTestCase {
        function testGetTitle() {
                $controller =& new UsersController();
                
                $result = $controller->_getTitle();
                $expected = 'Page Title';
                
                $this->assertEqual($result, $expected);
        }

}

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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