php-resque
php-resque copied to clipboard
Use is_callable instead of method_exists to check for setup/teardown
method_exists will return true even if an object has a protected method; calling it from Resque will then fail. is_callable only returns true when the method both exists and can be called externally.