public function testMethodInterference() { $mock = new MockDummy(); $mock->returnsByValueAt(0, "anotherMethod", "aaa"); $mock->returnsByValue("aMethod", "AAA"); $this->assertIdentical($mock->aMethod(), "AAA"); $this->assertIdentical($mock->anotherMethod(), "aaa"); }
public function testMethodInterference() { $mock = new MockDummy(); $mock->returnsByValueAt(0, 'anotherMethod', 'aaa'); $mock->returnsByValue('aMethod', 'AAA'); $this->assertIdentical($mock->aMethod(), 'AAA'); $this->assertIdentical($mock->anotherMethod(), 'aaa'); }