Changeset 4711 for branches/1.0/tests/RecordTestCase.php
- Timestamp:
- 07/24/08 04:27:56 (6 months ago)
- Files:
-
- 1 modified
-
branches/1.0/tests/RecordTestCase.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.0/tests/RecordTestCase.php
r4341 r4711 393 393 $this->assertEqual($user->updated, null); 394 394 $this->assertEqual($user->getTable()->getData(), array()); 395 396 } 395 } 396 397 398 public function testUnknownFieldGet() 399 { 400 $user = new User(); 401 $user->name = "Jack Daniels"; 402 $user->save(); 403 404 try { 405 $foo = $user->unexistentColumnInThisClass; 406 407 $this->fail(); 408 } catch (Doctrine_Record_Exception $e) { 409 $this->pass(); 410 } 411 412 try { 413 $foo = $user->get('unexistentColumnInThisClass'); 414 415 $this->fail(); 416 } catch (Doctrine_Record_Exception $e) { 417 $this->pass(); 418 } 419 } 420 397 421 398 422 public function testNewOperator()