public function testTest()
 {
     Doctrine_Manager::getInstance()->setAttribute(Doctrine_Core::ATTR_VALIDATE, Doctrine_Core::VALIDATE_ALL);
     $user = new Ticket_1385_User1();
     $user->username = '******';
     $user->password = '******';
     $user->email_address = '*****@*****.**';
     $this->assertTrue($user->isValid());
     $user = new Ticket_1385_User2();
     $user->username = '******';
     $user->password = '******';
     $user->email_address = '*****@*****.**';
     $this->assertFalse($user->isValid());
     $user = new Ticket_1385_User3();
     $user->username = '******';
     $user->password = '******';
     $user->email_address = '*****@*****.**';
     $this->assertFalse($user->isValid());
     Doctrine_Manager::getInstance()->setAttribute(Doctrine_Core::ATTR_VALIDATE, Doctrine_Core::VALIDATE_NONE);
 }
 public function testTest()
 {
     Doctrine_Manager::getInstance()->setAttribute('validate', 'all');
     $user = new Ticket_1385_User1();
     $user->username = '******';
     $user->password = '******';
     $user->email_address = '*****@*****.**';
     $this->assertTrue($user->isValid());
     $user = new Ticket_1385_User2();
     $user->username = '******';
     $user->password = '******';
     $user->email_address = '*****@*****.**';
     $this->assertFalse($user->isValid());
     $user = new Ticket_1385_User3();
     $user->username = '******';
     $user->password = '******';
     $user->email_address = '*****@*****.**';
     $this->assertFalse($user->isValid());
     Doctrine_Manager::getInstance()->setAttribute('validate', 'none');
 }