我有一个服务,它应该创建一个电子邮件类对象并将它传递给第三个类(email-sender)。 我想检查由函数生成的电子邮件的正文。 Service.php class Service
{
/** @var EmailService */
protected $emailService;
public function __construct(EmailServic
我试图进入使用phpSpec来设计我的类的工作流。我偶然发现了一个事件处理程序的测试方法。 我的规格: use App\Order;
use App\Models\Payments\Payment;
use App\Services\Payments\PaymentService;
use App\Events\Payments\AccountPayment;
class RecordP
我想在PHPSpec中创建一个测试函数,该函数使用不同参数调用另一个对象上的函数。到目前为止,我的尝试导致了几个不同的错误,所以我会概述我到目前为止所做的。 最近发生的错误: - it should find all realm data
method call:
- fetch(LeagueOfData\Adapters\Request\RealmRequest:000000