Changeset 20958
- Timestamp:
- 08/09/09 14:52:07 (4 years ago)
- Files:
-
- tools/lime/branches/2.0-experimental/lib/LimeAssertionFailedException.php (moved) (moved from tools/lime/branches/2.0-experimental/lib/tester/LimeTesterException.php) (1 diff)
- tools/lime/branches/2.0-experimental/lib/LimeNotEqualException.php (deleted)
- tools/lime/branches/2.0-experimental/lib/LimeTest.php (modified) (12 diffs)
- tools/lime/branches/2.0-experimental/lib/mock/LimeMockInvocation.php (modified) (1 diff)
- tools/lime/branches/2.0-experimental/lib/tester/LimeTester.php (modified) (1 diff)
- tools/lime/branches/2.0-experimental/lib/tester/LimeTesterArray.php (modified) (13 diffs)
- tools/lime/branches/2.0-experimental/lib/tester/LimeTesterDouble.php (modified) (4 diffs)
- tools/lime/branches/2.0-experimental/lib/tester/LimeTesterObject.php (modified) (2 diffs)
- tools/lime/branches/2.0-experimental/lib/tester/LimeTesterResource.php (modified) (2 diffs)
- tools/lime/branches/2.0-experimental/lib/tester/LimeTesterScalar.php (modified) (8 diffs)
- tools/lime/branches/2.0-experimental/lib/tester/LimeTesterString.php (modified) (2 diffs)
- tools/lime/branches/2.0-experimental/test/unit/tester/LimeTesterArrayTest.php (modified) (16 diffs)
- tools/lime/branches/2.0-experimental/test/unit/tester/LimeTesterDoubleTest.php (modified) (2 diffs)
- tools/lime/branches/2.0-experimental/test/unit/tester/LimeTesterIntegerTest.php (modified) (6 diffs)
- tools/lime/branches/2.0-experimental/test/unit/tester/LimeTesterObjectTest.php (modified) (5 diffs)
- tools/lime/branches/2.0-experimental/test/unit/tester/LimeTesterResourceTest.php (modified) (2 diffs)
- tools/lime/branches/2.0-experimental/test/unit/tester/LimeTesterScalarTest.php (modified) (4 diffs)
- tools/lime/branches/2.0-experimental/test/unit/tester/LimeTesterStringTest.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/lime/branches/2.0-experimental/lib/LimeAssertionFailedException.php
r20701 r20958 10 10 */ 11 11 12 class Lime TesterException extends Exception12 class LimeAssertionFailedException extends Exception 13 13 { 14 14 private tools/lime/branches/2.0-experimental/lib/LimeTest.php
r20704 r20958 150 150 return $this->pass($message); 151 151 } 152 catch (Lime TesterException $e)152 catch (LimeAssertionFailedException $e) 153 153 { 154 154 $error = sprintf(" got: %s\nexpected: %s", $e->getActual(10), $e->getExpected(10)); … … 178 178 return $this->pass($message); 179 179 } 180 catch (Lime TesterException $e)180 catch (LimeAssertionFailedException $e) 181 181 { 182 182 $error = sprintf(" got: %s\nexpected: %s", $e->getActual(10), $e->getExpected(10)); … … 206 206 return $this->pass($message); 207 207 } 208 catch (Lime TesterException $e)208 catch (LimeAssertionFailedException $e) 209 209 { 210 210 $error = sprintf("%s\n must not be\n%s", $e->getActual(), $e->getExpected()); … … 234 234 return $this->pass($message); 235 235 } 236 catch (Lime TesterException $e)236 catch (LimeAssertionFailedException $e) 237 237 { 238 238 $error = sprintf("%s\n must not be\n%s", $e->getActual(), $e->getExpected()); … … 262 262 return $this->pass($message); 263 263 } 264 catch (Lime TesterException $e)264 catch (LimeAssertionFailedException $e) 265 265 { 266 266 $error = sprintf(" %s\ndoesn't match %s", $e->getActual(), $e->getExpected()); … … 290 290 return $this->pass($message); 291 291 } 292 catch (Lime TesterException $e)292 catch (LimeAssertionFailedException $e) 293 293 { 294 294 $error = sprintf(" %s\nmatches %s", $e->getActual(), $e->getExpected()); … … 309 309 return $this->pass($message); 310 310 } 311 catch (Lime TesterException $e)311 catch (LimeAssertionFailedException $e) 312 312 { 313 313 $error = sprintf(" %s\nis not > %s", $e->getActual(), $e->getExpected()); … … 328 328 return $this->pass($message); 329 329 } 330 catch (Lime TesterException $e)330 catch (LimeAssertionFailedException $e) 331 331 { 332 332 $error = sprintf(" %s\nis not >= %s", $e->getActual(), $e->getExpected()); … … 347 347 return $this->pass($message); 348 348 } 349 catch (Lime TesterException $e)349 catch (LimeAssertionFailedException $e) 350 350 { 351 351 $error = sprintf(" %s\nis not < %s", $e->getActual(), $e->getExpected()); … … 366 366 return $this->pass($message); 367 367 } 368 catch (Lime TesterException $e)368 catch (LimeAssertionFailedException $e) 369 369 { 370 370 $error = sprintf(" %s\nis not <= %s", $e->getActual(), $e->getExpected()); … … 420 420 return $this->pass($message); 421 421 } 422 catch (Lime TesterException $e)422 catch (LimeAssertionFailedException $e) 423 423 { 424 424 $error = sprintf("%s\n doesn't contain\n%s", $e->getActual(), $e->getExpected()); … … 439 439 return $this->pass($message); 440 440 } 441 catch (Lime TesterException $e)441 catch (LimeAssertionFailedException $e) 442 442 { 443 443 $error = sprintf("%s\n must not contain\n%s", $e->getActual(), $e->getExpected()); tools/lime/branches/2.0-experimental/lib/mock/LimeMockInvocation.php
r20957 r20958 78 78 return $equal; 79 79 } 80 catch (Lime TesterException $e)80 catch (LimeAssertionFailedException $e) 81 81 { 82 82 return false; tools/lime/branches/2.0-experimental/lib/tester/LimeTester.php
r20701 r20958 112 112 public function assertEquals(LimeTesterInterface $expected) 113 113 { 114 throw new Lime TesterException($this, $expected);114 throw new LimeAssertionFailedException($this, $expected); 115 115 } 116 116 117 117 public function assertNotEquals(LimeTesterInterface $expected) 118 118 { 119 throw new Lime TesterException($this, $expected);119 throw new LimeAssertionFailedException($this, $expected); 120 120 } 121 121 122 122 public function assertSame(LimeTesterInterface $expected) 123 123 { 124 throw new Lime TesterException($this, $expected);124 throw new LimeAssertionFailedException($this, $expected); 125 125 } 126 126 127 127 public function assertNotSame(LimeTesterInterface $expected) 128 128 { 129 throw new Lime TesterException($this, $expected);129 throw new LimeAssertionFailedException($this, $expected); 130 130 } 131 131 132 132 public function assertLike(LimeTesterInterface $expected) 133 133 { 134 throw new Lime TesterException($this, $expected);134 throw new LimeAssertionFailedException($this, $expected); 135 135 } 136 136 137 137 public function assertUnlike(LimeTesterInterface $expected) 138 138 { 139 throw new Lime TesterException($this, $expected);139 throw new LimeAssertionFailedException($this, $expected); 140 140 } 141 141 142 142 public function assertGreaterThan(LimeTesterInterface $expected) 143 143 { 144 throw new Lime TesterException($this, $expected);144 throw new LimeAssertionFailedException($this, $expected); 145 145 } 146 146 147 147 public function assertGreaterThanOrEqual(LimeTesterInterface $expected) 148 148 { 149 throw new Lime TesterException($this, $expected);149 throw new LimeAssertionFailedException($this, $expected); 150 150 } 151 151 152 152 public function assertLessThan(LimeTesterInterface $expected) 153 153 { 154 throw new Lime TesterException($this, $expected);154 throw new LimeAssertionFailedException($this, $expected); 155 155 } 156 156 157 157 public function assertLessThanOrEqual(LimeTesterInterface $expected) 158 158 { 159 throw new Lime TesterException($this, $expected);159 throw new LimeAssertionFailedException($this, $expected); 160 160 } 161 161 162 162 public function assertContains(LimeTesterInterface $expected) 163 163 { 164 throw new Lime TesterException($this, $expected);164 throw new LimeAssertionFailedException($this, $expected); 165 165 } 166 166 167 167 public function assertNotContains(LimeTesterInterface $expected) 168 168 { 169 throw new Lime TesterException($this, $expected);169 throw new LimeAssertionFailedException($this, $expected); 170 170 } 171 171 } tools/lime/branches/2.0-experimental/lib/tester/LimeTesterArray.php
r20705 r20958 29 29 if (!$expected instanceof LimeTesterArray || $this->getType() !== $expected->getType()) 30 30 { 31 throw new Lime TesterException($this, $expected);31 throw new LimeAssertionFailedException($this, $expected); 32 32 } 33 33 … … 38 38 if (!array_key_exists($key, $remaining)) 39 39 { 40 throw new Lime TesterException($this, $expected->dumpExcerpt($key, $value));40 throw new LimeAssertionFailedException($this, $expected->dumpExcerpt($key, $value)); 41 41 } 42 42 … … 45 45 $remaining[$key]->assertEquals($value); 46 46 } 47 catch (Lime TesterException $e)48 { 49 throw new Lime TesterException($this->dumpExcerpt($key, $e->getActual()), $expected->dumpExcerpt($key, $e->getExpected()));47 catch (LimeAssertionFailedException $e) 48 { 49 throw new LimeAssertionFailedException($this->dumpExcerpt($key, $e->getActual()), $expected->dumpExcerpt($key, $e->getExpected())); 50 50 } 51 51 … … 55 55 foreach ($remaining as $key => $value) 56 56 { 57 throw new Lime TesterException($this->dumpExcerpt($key, $value), $expected);57 throw new LimeAssertionFailedException($this->dumpExcerpt($key, $value), $expected); 58 58 } 59 59 } … … 77 77 $this->value[$key]->assertNotEquals($value); 78 78 } 79 catch (Lime TesterException $e)80 { 81 throw new Lime TesterException($this, $expected);79 catch (LimeAssertionFailedException $e) 80 { 81 throw new LimeAssertionFailedException($this, $expected); 82 82 } 83 83 } … … 88 88 if (!$expected instanceof LimeTesterArray || $this->getType() !== $expected->getType()) 89 89 { 90 throw new Lime TesterException($this, $expected);90 throw new LimeAssertionFailedException($this, $expected); 91 91 } 92 92 … … 97 97 if (current($this->value) === false) 98 98 { 99 throw new Lime TesterException($this, $expected->dumpExcerpt($key, $value));99 throw new LimeAssertionFailedException($this, $expected->dumpExcerpt($key, $value)); 100 100 } 101 101 102 102 if ($key != key($this->value)) 103 103 { 104 throw new Lime TesterException($this->dumpExcerpt(key($this->value), current($this->value)), $expected->dumpExcerpt($key, $value));104 throw new LimeAssertionFailedException($this->dumpExcerpt(key($this->value), current($this->value)), $expected->dumpExcerpt($key, $value)); 105 105 } 106 106 … … 109 109 current($this->value)->assertSame($value); 110 110 } 111 catch (Lime TesterException $e)112 { 113 throw new Lime TesterException($this->dumpExcerpt($key, $e->getActual()), $expected->dumpExcerpt($key, $e->getExpected()));111 catch (LimeAssertionFailedException $e) 112 { 113 throw new LimeAssertionFailedException($this->dumpExcerpt($key, $e->getActual()), $expected->dumpExcerpt($key, $e->getExpected())); 114 114 } 115 115 … … 119 119 if (current($this->value) !== false) 120 120 { 121 throw new Lime TesterException($this->dumpExcerpt(key($this->value), current($this->value)), $expected);121 throw new LimeAssertionFailedException($this->dumpExcerpt(key($this->value), current($this->value)), $expected); 122 122 } 123 123 } … … 143 143 current($this->value)->assertNotSame($value); 144 144 } 145 catch (Lime TesterException $e)146 { 147 throw new Lime TesterException($this->dumpExcerpt($key, $e->getActual()), $expected->dumpExcerpt($key, $e->getExpected()));145 catch (LimeAssertionFailedException $e) 146 { 147 throw new LimeAssertionFailedException($this->dumpExcerpt($key, $e->getActual()), $expected->dumpExcerpt($key, $e->getExpected())); 148 148 } 149 149 … … 161 161 return; 162 162 } 163 catch (Lime TesterException $e)164 { 165 } 166 } 167 168 throw new Lime TesterException($this->dumpAll(), $expected);163 catch (LimeAssertionFailedException $e) 164 { 165 } 166 } 167 168 throw new LimeAssertionFailedException($this->dumpAll(), $expected); 169 169 } 170 170 … … 179 179 $value->assertEquals($expected); 180 180 } 181 catch (Lime TesterException $e)181 catch (LimeAssertionFailedException $e) 182 182 { 183 183 $equal = false; … … 186 186 if ($equal) 187 187 { 188 throw new Lime TesterException($this->dumpAll(), $expected);188 throw new LimeAssertionFailedException($this->dumpAll(), $expected); 189 189 } 190 190 } tools/lime/branches/2.0-experimental/lib/tester/LimeTesterDouble.php
r20701 r20958 39 39 if (abs($this->value - $expected->value) >= self::EPSILON) 40 40 { 41 throw new Lime TesterException($this, $expected);41 throw new LimeAssertionFailedException($this, $expected); 42 42 } 43 43 } … … 47 47 if (abs($this->value - $expected->value) < self::EPSILON) 48 48 { 49 throw new Lime TesterException($this, $expected);49 throw new LimeAssertionFailedException($this, $expected); 50 50 } 51 51 } … … 57 57 if (gettype($this->value) != gettype($expected->value)) 58 58 { 59 throw new Lime TesterException($this, $expected);59 throw new LimeAssertionFailedException($this, $expected); 60 60 } 61 61 } … … 67 67 $this->assertEquals($expected); 68 68 } 69 catch (Lime TesterException $e)69 catch (LimeAssertionFailedException $e) 70 70 { 71 71 if (gettype($this->value) == gettype($expected->value)) tools/lime/branches/2.0-experimental/lib/tester/LimeTesterObject.php
r20705 r20958 64 64 if ($this->object !== $expected->object) 65 65 { 66 throw new Lime TesterException($this, $expected);66 throw new LimeAssertionFailedException($this, $expected); 67 67 } 68 68 … … 74 74 if ($this->object === $expected->object) 75 75 { 76 throw new Lime TesterException($this, $expected);76 throw new LimeAssertionFailedException($this, $expected); 77 77 } 78 78 } tools/lime/branches/2.0-experimental/lib/tester/LimeTesterResource.php
r20702 r20958 19 19 if ($this->value != $expected->value) 20 20 { 21 throw new Lime TesterException($this, $expected);21 throw new LimeAssertionFailedException($this, $expected); 22 22 } 23 23 } … … 27 27 if ($this->value == $expected->value) 28 28 { 29 throw new Lime TesterException($this, $expected);29 throw new LimeAssertionFailedException($this, $expected); 30 30 } 31 31 } tools/lime/branches/2.0-experimental/lib/tester/LimeTesterScalar.php
r20701 r20958 47 47 if (!$this->equals($expected)) 48 48 { 49 throw new Lime TesterException($this, $expected);49 throw new LimeAssertionFailedException($this, $expected); 50 50 } 51 51 } … … 55 55 if ($this->value !== $expected->value) 56 56 { 57 throw new Lime TesterException($this, $expected);57 throw new LimeAssertionFailedException($this, $expected); 58 58 } 59 59 } … … 63 63 if ($this->equals($expected)) 64 64 { 65 throw new Lime TesterException($this, $expected);65 throw new LimeAssertionFailedException($this, $expected); 66 66 } 67 67 } … … 71 71 if ($this->value === $expected->value) 72 72 { 73 throw new Lime TesterException($this, $expected);73 throw new LimeAssertionFailedException($this, $expected); 74 74 } 75 75 } … … 79 79 if ($this->value <= $expected->value) 80 80 { 81 throw new Lime TesterException($this, $expected);81 throw new LimeAssertionFailedException($this, $expected); 82 82 } 83 83 } … … 87 87 if ($this->value < $expected->value) 88 88 { 89 throw new Lime TesterException($this, $expected);89 throw new LimeAssertionFailedException($this, $expected); 90 90 } 91 91 } … … 95 95 if ($this->value > $expected->value) 96 96 { 97 throw new Lime TesterException($this, $expected);97 throw new LimeAssertionFailedException($this, $expected); 98 98 } 99 99 } … … 103 103 if ($this->value >= $expected->value) 104 104 { 105 throw new Lime TesterException($this, $expected);105 throw new LimeAssertionFailedException($this, $expected); 106 106 } 107 107 } tools/lime/branches/2.0-experimental/lib/tester/LimeTesterString.php
r20701 r20958 24 24 if (!preg_match($expected->value, $this->value)) 25 25 { 26 throw new Lime TesterException($this, $expected);26 throw new LimeAssertionFailedException($this, $expected); 27 27 } 28 28 } … … 32 32 if (preg_match($expected->value, $this->value)) 33 33 { 34 throw new Lime TesterException($this, $expected);34 throw new LimeAssertionFailedException($this, $expected); 35 35 } 36 36 } tools/lime/branches/2.0-experimental/test/unit/tester/LimeTesterArrayTest.php
r20705 r20958 23 23 $expected = new LimeTesterScalar(false); 24 24 // test 25 $t->expect('Lime TesterException');25 $t->expect('LimeAssertionFailedException'); 26 26 $actual->assertEquals($expected); 27 27 … … 33 33 $expected = new LimeTesterObject(new stdClass()); 34 34 // test 35 $t->expect('Lime TesterException');35 $t->expect('LimeAssertionFailedException'); 36 36 $actual->assertEquals($expected); 37 37 … … 43 43 $expected = new LimeTesterArray(array(0 => 1)); 44 44 // test 45 $t->expect('Lime TesterException');45 $t->expect('LimeAssertionFailedException'); 46 46 $actual->assertEquals($expected); 47 47 … … 53 53 $expected = new LimeTesterArray(array()); 54 54 // test 55 $t->expect('Lime TesterException');55 $t->expect('LimeAssertionFailedException'); 56 56 $actual->assertEquals($expected); 57 57 … … 63 63 $expected = new LimeTesterArray(array(0 => 2)); 64 64 // test 65 $t->expect('Lime TesterException');65 $t->expect('LimeAssertionFailedException'); 66 66 $actual->assertEquals($expected); 67 67 … … 73 73 $expected = new LimeTesterArray(array('b' => 2, 'a' => 1)); 74 74 // test 75 $t->expect('Lime TesterException');75 $t->expect('LimeAssertionFailedException'); 76 76 $actual->assertSame($expected); 77 77 … … 110 110 $expected = new LimeTesterArray(array(0 => 1)); 111 111 // test 112 $t->expect('Lime TesterException');112 $t->expect('LimeAssertionFailedException'); 113 113 $actual->assertNotEquals($expected); 114 114 … … 120 120 $expected = new LimeTesterScalar(false); 121 121 // test 122 $t->expect('Lime TesterException');122 $t->expect('LimeAssertionFailedException'); 123 123 $actual->assertSame($expected); 124 124 … … 130 130 $expected = new LimeTesterObject(new stdClass()); 131 131 // test 132 $t->expect('Lime TesterException');132 $t->expect('LimeAssertionFailedException'); 133 133 $actual->assertSame($expected); 134 134 … … 140 140 $expected = new LimeTesterArray(array(0 => 1)); 141 141 // test 142 $t->expect('Lime TesterException');142 $t->expect('LimeAssertionFailedException'); 143 143 $actual->assertSame($expected); 144 144 … … 150 150 $expected = new LimeTesterArray(array()); 151 151 // test 152 $t->expect('Lime TesterException');152 $t->expect('LimeAssertionFailedException'); 153 153 $actual->assertSame($expected); 154 154 … … 160 160 $expected = new LimeTesterArray(array('1')); 161 161 // test 162 $t->expect('Lime TesterException');162 $t->expect('LimeAssertionFailedException'); 163 163 $actual->assertSame($expected); 164 164 … … 170 170 $expected = new LimeTesterArray(array('b' => 2, 'a' => 1)); 171 171 // test 172 $t->expect('Lime TesterException');172 $t->expect('LimeAssertionFailedException'); 173 173 $actual->assertSame($expected); 174 174 … … 207 207 $expected = new LimeTesterArray(array(0 => 1)); 208 208 // test 209 $t->expect('Lime TesterException');209 $t->expect('LimeAssertionFailedException'); 210 210 $actual->assertNotSame($expected); 211 211 … … 235 235 $expected = LimeTester::create(0); 236 236 // test 237 $t->expect('Lime TesterException');237 $t->expect('LimeAssertionFailedException'); 238 238 $actual->assertContains($expected); 239 239 … … 254 254 $expected = LimeTester::create(1); 255 255 // test 256 $t->expect('Lime TesterException');256 $t->expect('LimeAssertionFailedException'); 257 257 $actual->assertNotContains($expected); 258 258 tools/lime/branches/2.0-experimental/test/unit/tester/LimeTesterDoubleTest.php
r20701 r20958 38 38 $expected = new LimeTesterString('1.0'); 39 39 // test 40 $t->expect('Lime TesterException');40 $t->expect('LimeAssertionFailedException'); 41 41 $actual->assertSame($expected); 42 42 … … 48 48 $expected = new LimeTesterDouble(1 - 2/3); 49 49 // test 50 $t->expect('Lime TesterException');50 $t->expect('LimeAssertionFailedException'); 51 51 $actual->assertNotEquals($expected); 52 52 tools/lime/branches/2.0-experimental/test/unit/tester/LimeTesterIntegerTest.php
r20701 r20958 23 23 $expected = new LimeTesterInteger(1); 24 24 // test 25 $t->expect('Lime TesterException');25 $t->expect('LimeAssertionFailedException'); 26 26 $actual->assertGreaterThan($expected); 27 27 … … 33 33 $expected = new LimeTesterInteger(2); 34 34 // test 35 $t->expect('Lime TesterException');35 $t->expect('LimeAssertionFailedException'); 36 36 $actual->assertGreaterThan($expected); 37 37 … … 43 43 $expected = new LimeTesterInteger(2); 44 44 // test 45 $t->expect('Lime TesterException');45 $t->expect('LimeAssertionFailedException'); 46 46 $actual->assertGreaterThanOrEqual($expected); 47 47 … … 53 53 $expected = new LimeTesterInteger(1); 54 54 // test 55 $t->expect('Lime TesterException');55 $t->expect('LimeAssertionFailedException'); 56 56 $actual->assertLessThanOrEqual($expected); 57 57 … … 63 63 $expected = new LimeTesterInteger(1); 64 64 // test 65 $t->expect('Lime TesterException');65 $t->expect('LimeAssertionFailedException'); 66 66 $actual->assertLessThan($expected); 67 67 … … 73 73 $expected = new LimeTesterInteger(1); 74 74 // test 75 $t->expect('Lime TesterException');75 $t->expect('LimeAssertionFailedException'); 76 76 $actual->assertLessThan($expected); tools/lime/branches/2.0-experimental/test/unit/tester/LimeTesterObjectTest.php
r20705 r20958 35 35 $expected = new LimeTesterScalar(false); 36 36 // test 37 $t->expect('Lime TesterException');37 $t->expect('LimeAssertionFailedException'); 38 38 $actual->assertEquals($expected); 39 39 … … 45 45 $expected = new LimeTesterObject(new TestClass(1)); 46 46 // test 47 $t->expect('Lime TesterException');47 $t->expect('LimeAssertionFailedException'); 48 48 $actual->assertEquals($expected); 49 49 … … 64 64 $expected = new LimeTesterObject(new TestClass()); 65 65 // test 66 $t->expect('Lime TesterException');66 $t->expect('LimeAssertionFailedException'); 67 67 $actual->assertSame($expected); 68 68 … … 93 93 $expected = new LimeTesterObject(new TestClass()); 94 94 // test 95 $t->expect('Lime TesterException');95 $t->expect('LimeAssertionFailedException'); 96 96 $actual->assertNotEquals($expected); 97 97 … … 104 104 $expected = new LimeTesterObject($object); 105 105 // test 106 $t->expect('Lime TesterException');106 $t->expect('LimeAssertionFailedException'); 107 107 $actual->assertNotSame($expected); 108 108 tools/lime/branches/2.0-experimental/test/unit/tester/LimeTesterResourceTest.php
r20702 r20958 45 45 $actual = new LimeTesterResource($handle1); 46 46 $expected = new LimeTesterResource($handle2); 47 $t->expect('Lime TesterException');47 $t->expect('LimeAssertionFailedException'); 48 48 $actual->assertEquals($expected); 49 49 … … 60 60 $actual = new LimeTesterResource($handle1); 61 61 $expected = new LimeTesterResource($handle1); 62 $t->expect('Lime TesterException');62 $t->expect('LimeAssertionFailedException'); 63 63 $actual->assertNotEquals($expected); 64 64 tools/lime/branches/2.0-experimental/test/unit/tester/LimeTesterScalarTest.php
r20701 r20958 23 23 $expected = new LimeTesterScalar('b'); 24 24 // test 25 $t->expect('Lime TesterException');25 $t->expect('LimeAssertionFailedException'); 26 26 $actual->assertEquals($expected); 27 27 … … 34 34 $expected = new LimeTesterScalar('Foobar'); 35 35 // test 36 $t->expect('Lime TesterException');36 $t->expect('LimeAssertionFailedException'); 37 37 $actual->assertEquals($expected); 38 38 … … 53 53 $expected = new LimeTesterScalar(0); 54 54 // test 55 $t->expect('Lime TesterException');55 $t->expect('LimeAssertionFailedException'); 56 56 $actual->assertSame($expected); 57 57 … … 63 63 $expected = new LimeTesterScalar(1); 64 64 // test 65 $t->expect('Lime TesterException');65 $t->expect('LimeAssertionFailedException'); 66 66 $actual->assertNotEquals($expected); 67 67 tools/lime/branches/2.0-experimental/test/unit/tester/LimeTesterStringTest.php
r20701 r20958 29 29 $expected = new LimeTesterString('/\d/'); 30 30 // test 31 $t->expect('Lime TesterException');31 $t->expect('LimeAssertionFailedException'); 32 32 $actual->assertLike($expected); 33 33 … … 48 48 $expected = new LimeTesterString('/\d/'); 49 49 // test 50 $t->expect('Lime TesterException');50 $t->expect('LimeAssertionFailedException'); 51 51 $actual->assertUnlike($expected); 52 52