public function test_register_error_bad_value() { $this->setExpectedException('PHPUnit_Framework_Error_Warning'); APP_Gateway_Registry::register_gateway(array('not-a-string')); }
/** * Registers a gateway with the APP_Gateway_Registry * @param string $class_name Name of the class to be used as a Gateway * @return void */ function appthemes_register_gateway($class_name) { APP_Gateway_Registry::register_gateway($class_name); }