Commit a989abdc authored by meus's avatar meus

fixed validator tests that used the old API

parent 84234219
......@@ -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"));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment