Changeset 3557
- Timestamp:
- 01/19/08 21:25:39 (18 months ago)
- Location:
- branches/0.9/tests
- Files:
-
- 1 modified
- 1 moved
-
run.php (modified) (1 diff)
-
Ticket/741TestCase.php (moved) (moved from branches/0.9/tests/Ticket/XXXTestCase.php) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9/tests/run.php
r3555 r3557 18 18 $tickets->addTestCase(new Doctrine_Ticket_576_TestCase()); 19 19 $tickets->addTestCase(new Doctrine_Ticket_583_TestCase()); 20 $tickets->addTestCase(new Doctrine_Ticket_ XXX_TestCase());20 $tickets->addTestCase(new Doctrine_Ticket_741_TestCase()); 21 21 //If you write a ticket testcase add it here like shown above! 22 22 $test->addTestCase($tickets); -
branches/0.9/tests/Ticket/741TestCase.php
r3556 r3557 2 2 3 3 4 class Doctrine_Ticket_ XXX_TestCase extends Doctrine_UnitTestCase4 class Doctrine_Ticket_741_TestCase extends Doctrine_UnitTestCase 5 5 { 6 6 … … 66 66 } 67 67 68 public function p reInsert($e)68 public function postInsert($e) 69 69 { 70 70 71 echo "State: ". $this->Moo->state() . " \t Amount: " . $this->Moo->amount . "\n";71 //echo "State: ". $this->Moo->state() . " \t Amount: " . $this->Moo->amount . "\n"; 72 72 $this->Moo->amount = 0; 73 echo "State: ". $this->Moo->state() . " \t Amount: " . $this->Moo->amount . "\n";73 //echo "State: ". $this->Moo->state() . " \t Amount: " . $this->Moo->amount . "\n"; 74 74 $this->Moo->save(); 75 echo "State: ". $this->Moo->state() . " \t Amount: " . $this->Moo->amount . "\n";75 //echo "State: ". $this->Moo->state() . " \t Amount: " . $this->Moo->amount . "\n"; 76 76 $this->Moo->refresh(); 77 echo "State: ". $this->Moo->state() . " \t Amount: " . $this->Moo->amount . "\n"; 77 //echo "State: ". $this->Moo->state() . " \t Amount: " . $this->Moo->amount . "\n"; 78 /* 79 This outputs the following 80 State: 6 Amount: 1000 81 State: 6 Amount: 0 82 State: 6 Amount: 0 83 State: 3 Amount: 1000 84 85 */ 78 86 } 79 87 }