class TestCase
{
public function multiply($a,$b)
{
return $a*$b;
}
}
I need to use test cases in PHP. Some websites suggests that to use TDD in PHP, we need to install PHPUnit. For now, I need only knowledge of test cases and using them in PHP to test a program. Is that possible for above PHP code(without installing PHPUnit)?
I have WAMPP to run php.
Read this article written by authors of PHPUnit: http://www.phpunit.de/manual/current/en/automating-tests.html
One of the examples from there:
You can reinvent the wheel, but why do you need it?