public function testStaticAddNodeTypeWithoutNodeType() { $this->setExpectedException('\\PE\\Exceptions\\EncoderNodeException', 'The node type you\'re trying to add seems to be a regular node because it has a no type name. Make sure you try to add an EncoderNode with a type name'); EncoderNode::addNodeType($this->nodeType()); }
public function addHasDefaultTypeTypeNode() { return EncoderNode::addNodeType(new HasDefaultTypeTypeNode()); }