How to write PHPUnit test cases

16 views
Skip to first unread message

amit

unread,
Dec 30, 2011, 5:40:08 AM12/30/11
to phpcamp
I am trying to use phpunit for well known mars rover problem.
I am new to phpunit and not getting how to write test cases for this.
I read lot of documentation about it but i didnt find any proper php
unit test cases for application which consists of 4-5 classes written
for single task.

what i mean is on google i found simple examples with one class and
1-2 methods...how to write PHPunit tests for application with 4-5
classes ??
Like in my case application consisnt of classes like

1) class.movement
2) class.rover
3) class.plateau

Let me know if u dont understand anything
Reply all
Reply to author
Forward
0 new messages