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?
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment