Since you are probably already writing simple tests for class methods here is a small snippet of code to use in your tests.
The convetion is that you name your simple tests after the method that you are testing. So you have function methodName() { ... } and the corresponding test is named testMethodName() { .. }
The second convetion is that the test class is named with test appended to original class name. so class ClassName { ..... } and the test class is named class ClassNameTest extends CDbTestCase { .... }
Total 1 comment
Since you are probably already writing simple tests for class methods here is a small snippet of code to use in your tests. The convetion is that you name your simple tests after the method that you are testing. So you have function methodName() { ... } and the corresponding test is named testMethodName() { .. } The second convetion is that the test class is named with test appended to original class name. so class ClassName { ..... } and the test class is named class ClassNameTest extends CDbTestCase { .... }
So..
and for seemingly for static methods:
Afterwards you simply use the php function:
Leave a comment
Please login to leave your comment.