Am also trying the same to integrate cakePHP 1.2.9 with PHPUnit.

Any help will be appreciated.

On Friday, November 5, 2010 8:07:05 AM UTC+5:30, Karthik wrote:
>
> I am a cake and a PHP newbie so apologies if these question is too 
> basic. 
>
> I am trying to integrate PHPUnit with cakePHP 1.2.3. In 
> cake_test_case.php, I made the following changes: 
>
> (1) In cake_test_case.php, class CakeTestCase extends from 
> PHPUnit_Framework_TestCase 
>
> (2) I added require_once 'PHPUnit/Framework/TestCase.php' to 
> cake_test_case.php 
>
> Questions: 
> (1) Do I still need app::import('Vendor', 'PHPUnit')? Right now I dont 
> have that in my code. 
> (2) When I run my PHPUnit test case which is derived from 
> CakeTestCase, I see the following error message: 
>
> Warning: require(CAKEdispatcher.php): failed to open stream: No such 
> file or directory in /home/karthik/work/livemocha/trunk/src/wwwroot/ 
> cake/tests/lib/cake_test_case.php on line 31 
>
> So for some reason, unknown to me, the cake constants defined in 
> paths.php are not getting read. This leads me to believe that cake is 
> not getting initialized. May be I am missing some intermediate steps 
> here. 
>
> Any suggestions?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to