Unit Testing Controller using fixture in test_suit config

2008-03-05 Thread Micro
Does anyone know how to test controller in CakePhp 1.2 using the test_suit controller? I am using the testAction function to test my controller. However, it goes to the non-test_suit database. Any idea? --~--~-~--~~~---~--~~ You received this message because you

Re: Custom Component and Redirect problem

2008-02-08 Thread Micro
I figure out now. There is some funny character in my Date component. That's why it screw up the header for redirect. Thank you for everyone input. I love the CakePhp community. On Feb 8, 11:26 am, Micro <[EMAIL PROTECTED]> wrote: > Ok, I try to remove all the print out and

Resource Needed: Zend Debugger or Eclipse Debugger for CakePhp

2008-02-08 Thread Micro
I try to use the Zend and/or Eclipse PHP Debugger to debuge the CakePhp. I just don't know how to debug my controller files. I setup a breakpoint in my controller.php. Then, I run the debugger. But, it just doesn't stop at the breakpoint that I want. I am totally a newbie. I know you guys mu

Re: Custom Component and Redirect problem

2008-02-08 Thread Micro
it, you can use var_dump($timeStamp); to get more details. > > If you are happy with the results, remove the exit() and continue.. > > Another way is to take a decent remote debugger with an IDE that uses it. > That way you can save yourself from doing all that print_r and echo stu

Custom Component and Redirect problem

2008-02-07 Thread Micro
I am using CakePhp 1.2 So, I created a component called Date. I embedded in my class following the example. My controller class: class TradesController extends AppController { var $name = 'Trades'; var $components = array('Date'); var $helpers = array('Html', 'Form');

Re: Problem with import in test fixtures?

2008-02-01 Thread Micro
Hey, i got the same problem too. I am still not able to import my fixtures. My cakephp version is: 1.2.0.6311 beta, and my simpletest version is : 1.0.1beta2 This is my model: TestObject = new StockTest(); $result = $this->TestObject->findCount(); $expected = c