} $pattern = '/"(?<start>.*)".*->.*"(?<end>.*)".*label="(?<transition>.*?)"/'; if (!preg_match($pattern, $line, $matches)) { throw new Exception ("Cannot parse line:\n$line"); } $this->setUp($matches['start']); $this->applyEvent($matches['end']); $this->assertEndState($matches['transition']); } @ciaranmcnulty |
[email protected] | #cukenfest