Testing Just One Function In PHPUnit

A PHPUnit class might contain many test cases, to just run one testcase within each class can be helpful. Thanks to the filter option.

phpunit --filter test_function_name path/to/file.php

Author: bpeh

Bernard Peh is a great passioner of web technologies and one of the co-founder of Sitecritic.net Website Design and Reviews. He works with experienced web designers and developers everyday, developing and designing commercial websites. He specialises mainly in SEO and PHP programming.