woothemes/woocommerce — pull request #5064 by syaiful6 (2014-03-06 04:59:05+00:00)
Title: Validate a class Before Use it

Current implementation of `WC_Shipping` and `WC_Payment_Gateway` to add/register a shipping method and gateway is via Wordpress filter. We are don't know what is passed there, so now we must validate each class name passed there.

I am start to implement a validation using ReflectionClass. Another options is using typehinting. I am also add phpunit to test that. What do you think?