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 | 4 | private function getXPathQuery() { |
|
66 | |||
67 | /** |
||
68 | * Takes previously find test group and collect all data set from it |
||
69 | * parses and returns an array |
||
70 | * |
||
71 | * @param \SimpleXMLElement $element |
||
72 | * |
||
73 | * @return array |
||
74 | */ |
||
75 | 3 | private function createTestArrayFromXmlElement(SimpleXMLElement $element) { |
|
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | 4 | public function parse(SimpleXMLElement $root) { |
|
106 | |||
107 | } |
||
108 |