assertSame($result, (new OutlookCom())->isSupported(new Email('Jane.Doe@' . $domain, true))); } public function providerIsSupported() : array { return [ ['outlook.com', true], ['Outlook.Com', true], ['hotmail.com', true], ['HotMail.COM', true], ['gmail.com', false], ['tlen.pl', false], ]; } /** * @dataProvider providerGetPrimaryEmail * * @param string $inputEmail * @param string $expectedEmail */ public function testGetPrimaryEmail(string $inputEmail, string $expectedEmail) { $this->assertEquals($expectedEmail, (new OutlookCom())->getPrimaryEmail(new Email($inputEmail, true))); } public function providerGetPrimaryEmail() : array { return [ ['janedoe@outlook.com', 'janedoe@outlook.com'], ['jane.doe@outlook.com', 'jane.doe@outlook.com'], ['Jane.Doe@Outlook.Com', 'jane.doe@outlook.com'], ['Jane.Doe+alias@OUTLOOK.COM', 'jane.doe@outlook.com'], ['Jane.Doe+Hotmail@hotmail.com', 'jane.doe@hotmail.com'], ]; } }