public function testState() { $source = $this->makePattern(); $source->state = "completed"; $pattern = new Pattern($source); $this->assertEquals($source->state, $pattern->getState()); }
public function testState() { $pattern = new Pattern('one/two/three@completed', __FILE__); $this->assertEquals('completed', $pattern->getState()); }