diff options
Diffstat (limited to 'src/bindings/swig/php/test.php')
-rw-r--r-- | src/bindings/swig/php/test.php | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/bindings/swig/php/test.php b/src/bindings/swig/php/test.php index 3ac64eb..6a15429 100644 --- a/src/bindings/swig/php/test.php +++ b/src/bindings/swig/php/test.php @@ -45,10 +45,16 @@ $interpreter = Interpreter::fromURI('https://raw.github.com/tklab-tud/uscxml/mas $interpreter->addMonitor($monitor); $interpreter->interpret(); -// $interpreter = Interpreter::fromURI('https://raw.github.com/tklab-tud/uscxml/master/test/samples/uscxml/test-invoked.scxml'); -// $parentQueue = -// $interpreter->setParentQueue($parentQueue); -// $interpreter->addMonitor($monitor); -// $interpreter->interpret(); +$interpreter = Interpreter::fromURI('https://raw.github.com/tklab-tud/uscxml/master/test/samples/uscxml/test-invoked.scxml'); +$parentQueue = new ParentQueue(); +$interpreter->setParentQueue($parentQueue); +$interpreter->interpret(); +//$interpreter->start(); + +#while($interpreter->isRunning()) { + $event = $parentQueue->pop(); + print_r($event); + print(Event_name_get($event) . "\n"); +#} ?>
\ No newline at end of file |