addAction( ActionFactory::getNewAction('SetValue', array('target' => 'name', 'value' => 'notAFunction(1,1)')) ); $focus = new Account(); $dep->fire($focus); $dep->setTrigger(new Trigger('falz')); $dep->fire($focus); $dep->setTrigger(new Trigger('isAlpha($notAField)')); $dep->fire($focus); //fake assert to show the test passed $this->assertTrue(true); } catch (Exception $e){ $this->assertTrue(false, "Parser threw exception: {$e->getMessage()}"); } } }