public function testClonedMockObjectCanBeUsedInPlaceOfOriginalOne() {
$x = $this
->getMock('stdClass');
$y = clone $x;
$mock = $this
->getMock('stdClass', array(
'foo',
));
$mock
->expects($this
->once())
->method('foo')
->with($this
->equalTo($x));
$mock
->foo($y);
}