sebastianbergmann/phpunit-mock-objects — pull request #85 by lstrojny (2012-03-07 21:52:40+00:00)
Title: Adding unique ID per mock object so that they aren’t equal (__phpunit_mockObjectId)

Adds a per mock object unique ID to prevent mock object from begin equal. Otherwise this test case will succeed per default nevertheless it is faulty:

```php
getMock('stdClass');
$mock2 = $this->getMock('stdClass');

$sut = $this->getMock('SplFixedArray');
$sut->expects($this->once())
->method('offsetSet')
->with(0, $mock1);

// This should fail
$sut->offsetSet(0, $mock2);
}
}
```