Changeset 3549
- Timestamp:
- 01/18/08 19:35:15 (18 months ago)
- Files:
-
- 1 modified
-
trunk/tests/DoctrineTest/UnitTestCase.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/DoctrineTest/UnitTestCase.php
r3460 r3549 3 3 { 4 4 protected $_passed = 0; 5 5 6 6 protected $_failed = 0; 7 7 8 8 protected $_messages = array(); 9 9 … … 63 63 } 64 64 } 65 public function pass() 65 66 public function assertNull($expr) 67 { 68 if (is_null($expr)) { 69 $this->pass(); 70 } else { 71 $this->fail(); 72 } 73 } 74 75 public function assertNotNull($expr) 76 { 77 if (is_null($expr)) { 78 $this->fail(); 79 } else { 80 $this->pass(); 81 } 82 } 83 84 public function pass() 66 85 { 67 86 $this->_passed++; … … 69 88 public function fail($message = "") 70 89 { 71 $this->_fail($message); 90 $this->_fail($message); 72 91 } 73 92 public function _fail($message = "") … … 93 112 $this->_failed++; 94 113 } 95 public function run(DoctrineTest_Reporter $reporter = null, $filter = null) 114 public function run(DoctrineTest_Reporter $reporter = null, $filter = null) 96 115 { 97 116 foreach (get_class_methods($this) as $method) { … … 103 122 } 104 123 } 105 public function getMessages() 124 public function getMessages() 106 125 { 107 126 return $this->_messages;