Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function isEmailTestSuite() |
||
29 | { |
||
30 | $testSuite = dirname(__FILE__) . '/../../resources/is_email_tests.xml'; |
||
31 | $document = new \DOMDocument(); |
||
32 | $document->load($testSuite); |
||
33 | $elements = $document->getElementsByTagName('test'); |
||
34 | $tests = []; |
||
35 | |||
36 | foreach($elements as $testElement) { |
||
37 | $childNode = $testElement->childNodes; |
||
38 | $tests[][] = ($childNode->item(1)->getAttribute('value')); |
||
39 | } |
||
40 | |||
41 | return $tests; |
||
42 | } |
||
43 | |||
45 |