public function testSetStepExecution() { $this->processor->setContextRegistry($this->contextRegistry); $this->contextRegistry->expects($this->once())->method('getByStepExecution')->will($this->returnValue($this->context)); $this->processor->setStepExecution($this->stepExecution); }