Exemplo n.º 1
0
 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");
 }
Exemplo n.º 2
0
 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');
 }