phpunit --filter methodName ClassName path/to/file.php # For newer versions of phpunit, it is just: phpunit --filter methodName path/to/file.php