/** * @expectedException InvalidArgumentException */ public function testExecuteInvalid() { $variableNode = new StringVariable(); $action = new VarDumpAction(); $action->getSocket(VarDumpAction::SOCKET_DATA)->addNode($variableNode); $action->execute(); }
/** * @expectedException \InvalidArgumentException */ public function testGetInvalidSocket() { $node = new VarDumpAction(); $node->getSocket('unknown'); }