I am exploring junit for unit testing. I have seen that it is java based. I have explored it and I have still some questions
- Can I integrate junit with php based applications for unit testing?
- Test cases will only be written in java? Can I write test cases in PHP using junit?
I have explored tutorials and I have seen all test cases are written in Java. But I have someone who is saying it can be done. So any guide will be much appreciated.
Regards
JUnit is a Java unit testing framework. It’s meant to unit-test java-classes by means of tests written in Java that are highly coupled to the implementation they are testing. Not sure what the “someone” you have means when he/she says it can be used to unit-test PHP. Maybe you are looking for PHPUnit.