@@ 56-67 (lines=12) @@ | ||
53 | } |
|
54 | } |
|
55 | ||
56 | protected function findFile($reader, $currentNamespace, $currentFile) |
|
57 | { |
|
58 | if (( |
|
59 | $reader->name === "sourcefile" && |
|
60 | $reader->nodeType == XMLReader::ELEMENT |
|
61 | )) { |
|
62 | $currentFile = $currentNamespace . '/' . $reader->getAttribute('name'); |
|
63 | $this->coveredLines[$currentFile] = []; |
|
64 | } |
|
65 | ||
66 | return $currentFile; |
|
67 | } |
|
68 | ||
69 | protected function findNamespace($reader, $currentNamespace) |
|
70 | { |
@@ 79-89 (lines=11) @@ | ||
76 | return 'Parses text output in clover (xml) format'; |
|
77 | } |
|
78 | ||
79 | protected function checkForNewFiles($reader, $currentFile) |
|
80 | { |
|
81 | if (( |
|
82 | $reader->name === "file" && |
|
83 | $reader->nodeType == XMLReader::ELEMENT |
|
84 | )) { |
|
85 | $currentFile = $reader->getAttribute('name'); |
|
86 | $this->coveredLines[$currentFile] = []; |
|
87 | } |
|
88 | return $currentFile; |
|
89 | } |
|
90 | ||
91 | /** |
|
92 | * @param $reader |
@@ 102-114 (lines=13) @@ | ||
99 | * @param string $currentFile |
|
100 | * @return string the currentFileName |
|
101 | */ |
|
102 | protected function checkForNewFile(XMLReader $reader, $currentFile) |
|
103 | { |
|
104 | if (( |
|
105 | $reader->name === 'file' && |
|
106 | $reader->nodeType == XMLReader::ELEMENT |
|
107 | ) |
|
108 | ) { |
|
109 | $currentFile = $reader->getAttribute('name'); |
|
110 | $this->errors[$currentFile] = []; |
|
111 | return $currentFile; |
|
112 | } |
|
113 | return $currentFile; |
|
114 | } |
|
115 | ||
116 | /** |
|
117 | * {@inheritdoc} |