私の質問は:
「getThirdPayUrlSpec」をモックして「getThirdPayUrl」をテストしたいのですが、phpunit でモック クラスを作成するにはどうすればよいですか?
class BasePayController{
public static function getThirdPayUrl($type,$order,$arr,&$url){
//$objCtrl = new AliPayController();
$objCtrl = self::getPayController($type);
$ret = $objCtrl->getThirdPayUrlSpec($order,$arr,$url);
return $ret;
}
}