public function testProcess() { $this->processor1->expects($this->any())->method('supports')->will($this->returnValue(true)); $this->processor1->expects($this->any())->method('isLinked')->will($this->returnValue(true)); $this->processor1->expects($this->once())->method('process'); $this->processor2->expects($this->any())->method('supports')->will($this->returnValue(true)); $this->processor2->expects($this->any())->method('isLinked')->will($this->returnValue(true)); $this->processor2->expects($this->once())->method('process'); $this->delegate->process(new SourceMock(123)); }