Changeset 20957
- Timestamp:
- 08/09/09 14:43:32 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/lime/branches/2.0-experimental/lib/mock/LimeMockInvocation.php
r20955 r20957 57 57 $equal = $this->method == $invocation->method && $this->class == $invocation->class; 58 58 59 $exp1 = LimeTester::create($this->parameters); 60 $exp2 = LimeTester::create($invocation->parameters); 61 59 62 if ($this->parameters == self::ANY_PARAMETERS) 60 63 { 61 64 return $equal; 62 65 } 63 else if ($strict) 66 67 try 64 68 { 65 return $equal && $this->parameters === $invocation->parameters; 69 if ($strict) 70 { 71 $exp1->assertSame($exp2); 72 } 73 else 74 { 75 $exp1->assertEquals($exp2); 76 } 77 78 return $equal; 66 79 } 67 else80 catch (LimeTesterException $e) 68 81 { 69 return $equal && $this->parameters == $invocation->parameters;82 return false; 70 83 } 71 84 }