1
0
mirror of synced 2025-01-17 22:11:41 +03:00

fixed validator tests that used the old API

This commit is contained in:
meus 2007-09-03 22:09:05 +00:00
parent 8423421973
commit a989abdc22

View File

@ -181,18 +181,15 @@ class Doctrine_Validator_TestCase extends Doctrine_UnitTestCase
$validator = new Doctrine_Validator_Email();
$email = $this->connection->create("Email");
$this->assertFalse($validator->validate($email,"address","example@example",null));
$this->assertFalse($validator->validate($email,"address","example@@example",null));
$this->assertFalse($validator->validate($email,"address","example@example.",null));
$this->assertFalse($validator->validate($email,"address","example@e..",null));
$this->assertFalse($validator->validate($email,"address","example@e..",null));
$this->assertTrue($validator->validate($email,"address","null@pookey.co.uk",null));
$this->assertTrue($validator->validate($email,"address","null@pookey.com",null));
$this->assertTrue($validator->validate($email,"address","null@users.doctrine.pengus.net",null));
$this->assertFalse($validator->validate("example@example"));
$this->assertFalse($validator->validate("example@@example"));
$this->assertFalse($validator->validate("example@example."));
$this->assertFalse($validator->validate("example@e.."));
$this->assertTrue($validator->validate("null+doctrine@pookey.co.uk"));
$this->assertTrue($validator->validate("null@pookey.co.uk"));
$this->assertTrue($validator->validate("null@pookey.com"));
$this->assertTrue($validator->validate("null@users.doctrine.pengus.net"));
}
/**