public function testTest() { Doctrine_Manager::getInstance()->setAttribute(Doctrine_Core::ATTR_VALIDATE, Doctrine_Core::VALIDATE_ALL); try { $test = new Ticket_1799_Test(); $test->name = 'test'; $test->latitude = '49.3583848'; $test->longitude = '49.3583848'; $test->save(); $this->pass(); } catch (Exception $e) { $this->fail(); } Doctrine_Manager::getInstance()->setAttribute(Doctrine_Core::ATTR_VALIDATE, Doctrine_Core::VALIDATE_NONE); }
public function testTest() { Doctrine_Manager::getInstance()->setAttribute('validate', 'all'); try { $test = new Ticket_1799_Test(); $test->name = 'test'; $test->latitude = '49.3583848'; $test->longitude = '49.3583848'; $test->save(); $this->pass(); } catch (Exception $e) { $this->fail(); } Doctrine_Manager::getInstance()->setAttribute('validate', 'none'); }