getOptByType(simplexml_load_string(file_get_contents(__DIR__ . '/../../TestFiles/Option/radiobox.xml'))['type']); $obj->fromXML(simplexml_load_string(file_get_contents(__DIR__ . '/../../TestFiles/Option/radiobox.xml'))['type']); $element = $obj->parseXML(); $this->assertInstanceOf('PSC\Library\Calc\Option\Type\Radio', $element); } }