*/ class EmailValidationTest extends TestCase { protected function getApiClass() { return EmailValidation::class; } public function testValidEmail() { $this->markTestIncomplete('WIP'); $params = [ 'address' => 'me@davidgarcia.cat', 'mailbox_verification' => true, ]; $api = $this->getApiMock(); $api->expects($this->once()) ->method('httpGet') ->with('/address/private/validate', $params) ->willReturn(new Response()); $api->validate($params['address'], $params['mailbox_verification']); } public function testParseEmail() { $this->markTestIncomplete('WIP'); $params = [ 'addresses' => 'me@davidgarcia.cat', 'syntax_only' => true, ]; $api = $this->getApiMock(); $api->expects($this->once()) ->method('httpGet') ->with('/address/private/parse', $params) ->willReturn(new Response()); $api->parse($params['addresses'], $params['syntax_only']); } }