public function detectProcess($subject) { return $this->process; }
public function testWillAlwaysReturnTheSameProcess() { $process = new Process('test', new State('new')); $detector = new SingleProcessDetector($process); $subject = new \stdClass(); $result = $detector->detectProcess($subject); $this->assertSame($process, $result); }