- Timestamp:
- 07/24/08 04:27:56 (6 months ago)
- Location:
- branches
- Files:
-
- 3 modified
-
0.11/lib/Doctrine/Record.php (modified) (1 diff)
-
0.11/tests/RecordTestCase.php (modified) (1 diff)
-
1.0/tests/RecordTestCase.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.11/lib/Doctrine/Record.php
r4696 r4711 889 889 } 890 890 } 891 892 //throw new Doctrine_Record_Exception('Unknown property '. $fieldName); 891 893 } 892 894 -
branches/0.11/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() -
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()