public function testAnySupports() { $this->processor1->expects($this->any())->method('supports')->will($this->returnValue(false)); $this->processor2->expects($this->any())->method('supports')->will($this->returnValue(true)); $this->assertTrue($this->delegate->supports(new SourceMock(123))); }