function testReturnsAtGivesOriginalObjectHandle() { $mock = new TestDummy(); $object = new Dummy(); $mock->returnsAt(0, 'anotherMethod', $object, array(3)); $this->assertSame($mock->anotherMethod(3), $object); }