コード例 #1
0
 public function test_register_error_bad_value()
 {
     $this->setExpectedException('PHPUnit_Framework_Error_Warning');
     APP_Gateway_Registry::register_gateway(array('not-a-string'));
 }
コード例 #2
0
ファイル: gateway-functions.php プロジェクト: kalushta/darom
/**
 * 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);
}