1 | <?php namespace BuildR\TestTools\DataSetLoader\XML\Parser; |
||
37 | class StandardXMLDefinitionParser implements XMLDefinitionParserInterface { |
||
38 | |||
39 | /** |
||
40 | * @type string |
||
41 | */ |
||
42 | private $groupName; |
||
43 | |||
44 | /** |
||
45 | * Set the parsed test group name. If no name set the first defined |
||
46 | * group will be used. |
||
47 | * |
||
48 | * @param string $groupName |
||
49 | */ |
||
50 | 3 | public function setTestGroup($groupName) { |
|
53 | |||
54 | /** |
||
55 | * Creates the root XPath query to find the correct test group |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | //@codingStandardIgnoreStart |
||
60 | 4 | private function getXPathQuery() { |
|
68 | |||
69 | /** |
||
70 | * Takes previously find test group and collect all data set from it |
||
71 | * parses and returns an array |
||
72 | * |
||
73 | * @param \SimpleXMLElement $element |
||
74 | * |
||
75 | * @return array |
||
76 | */ |
||
77 | 3 | private function createTestArrayFromXmlElement(SimpleXMLElement $element) { |
|
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | */ |
||
104 | 4 | public function parse(SimpleXMLElement $root) { |
|
113 | |||
114 | } |
||
115 |