"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/Validator/Tests/Constraints/EmailValidatorTest.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

EmailValidatorTest.php  (phplist-3.4.5.tgz):EmailValidatorTest.php  (phplist-3.4.6.tgz)
skipping to change at line 43 skipping to change at line 43
$this->assertNoViolation(); $this->assertNoViolation();
} }
public function testEmptyStringIsValid() public function testEmptyStringIsValid()
{ {
$this->validator->validate('', new Email()); $this->validator->validate('', new Email());
$this->assertNoViolation(); $this->assertNoViolation();
} }
/**
* @expectedException \Symfony\Component\Validator\Exception\UnexpectedTypeE
xception
*/
public function testExpectsStringCompatibleType() public function testExpectsStringCompatibleType()
{ {
$this->expectException('Symfony\Component\Validator\Exception\Unexpected TypeException');
$this->validator->validate(new \stdClass(), new Email()); $this->validator->validate(new \stdClass(), new Email());
} }
/** /**
* @dataProvider getValidEmails * @dataProvider getValidEmails
*/ */
public function testValidEmails($email) public function testValidEmails($email)
{ {
$this->validator->validate($email, new Email()); $this->validator->validate($email, new Email());
 End of changes. 2 change blocks. 
4 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)