'foo@mailgun.net', 'did_you_mean' => null, 'is_disposable_address' => false, 'is_role_address' => false, 'is_valid' => true, 'mailbox_verification' => null, 'parts' => ['display_name' => null, 'domain' => 'mailgun.net', 'local_part' => 'foo'], 'reason' => null, ]; $parts = EmailValidation::create($data); $this->assertEquals($data['address'], $parts->getAddress()); $this->assertEquals($data['did_you_mean'], $parts->getDidYouMean()); $this->assertEquals($data['is_disposable_address'], $parts->isDisposableAddress()); $this->assertEquals($data['is_role_address'], $parts->isRoleAddress()); $this->assertEquals($data['is_valid'], $parts->isValid()); $this->assertEquals($data['mailbox_verification'], $parts->isMailboxVerification()); $this->assertInstanceOf(Parts::class, $parts->getParts()); $this->assertEquals($data['reason'], $parts->getReason()); } }