2 require_once 'include/SugarEmailAddress/SugarEmailAddress.php';
11 class Bug40068Test extends Sugar_PHPUnit_Framework_TestCase
13 public function providerEmailAddressRegex()
16 array('john@john.com',true),
17 array('jo&hn@john.com',true),
18 array('joh#n@john.com.br',true),
19 array('&#john@john.com', true),
20 array('atendimento-hd.@uol.com.br',true),
26 * @dataProvider providerEmailAddressRegex
28 public function testEmailAddressRegex($email, $valid)
30 $sea = new SugarEmailAddress;
33 $this->assertRegExp($sea->regex,$email);
36 $this->assertNotRegExp($sea->regex,$email);