public function testSettingReturns() { $mock = new TestDummy(); $mock->returnsByValue('anotherMethod', 33, array(3)); $mock->returnsByValue('anotherMethod', 22); $mock->returnsByValueAt(2, 'anotherMethod', 44, array(3)); $this->assertEqual($mock->anotherMethod(), 22); $this->assertEqual($mock->anotherMethod(3), 33); $this->assertEqual($mock->anotherMethod(3), 44); }