Metabor\Statemachine\Factory\SingleProcessDetectorTest::testWillAlwaysReturnTheSameProcess PHP Method

testWillAlwaysReturnTheSameProcess() public method

    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);
    }
SingleProcessDetectorTest