expectException(InvalidEmailException::class); } $object = new Email($email, $caseSensitive); $this->assertSame($localPart, $object->getLocalPart()); $this->assertSame($domain, $object->getDomain()); } public function providerConstructor() : array { return [ ['john doe@example.com', true], ['.johndoe@example.com', true], ['Jane.Doe@Example.COM', false, 'Jane.Doe', 'example.com', true], ['Jane.Doe@Example.COM', false, 'jane.doe', 'example.com'], ]; } }