public function testData() { $data = ['smtp' => [], 'from' => 'from', 'to' => 'to', 'subject' => 'subject']; $this->options = new MailOptions($data); $this->assertInstanceOf(SmtpOptions::class, $this->options->getSmtp()); $this->assertEquals($data['from'], $this->options->getFrom()); $this->assertEquals($data['to'], $this->options->getTo()); $this->assertEquals($data['subject'], $this->options->getSubject()); }