| @@ 116-131 (lines=16) @@ | ||
| 113 | $this->assertSame(0, $exitCode, 'CLI Command failed. Output: ' . $output); |
|
| 114 | } |
|
| 115 | ||
| 116 | public function goodDSLProvider() |
|
| 117 | { |
|
| 118 | $dslDir = $this->dslDir.'/good'; |
|
| 119 | if(!is_dir($dslDir)) { |
|
| 120 | return array(); |
|
| 121 | } |
|
| 122 | ||
| 123 | $out = array(); |
|
| 124 | foreach(scandir($dslDir) as $fileName) { |
|
| 125 | $filePath = $dslDir . '/' . $fileName; |
|
| 126 | if (is_file($filePath)) { |
|
| 127 | $out[] = array($filePath); |
|
| 128 | } |
|
| 129 | } |
|
| 130 | return $out; |
|
| 131 | } |
|
| 132 | ||
| 133 | public function invalidDSLProvider() |
|
| 134 | { |
|
| @@ 133-148 (lines=16) @@ | ||
| 130 | return $out; |
|
| 131 | } |
|
| 132 | ||
| 133 | public function invalidDSLProvider() |
|
| 134 | { |
|
| 135 | $dslDir = $this->dslDir.'/bad/parsing'; |
|
| 136 | if(!is_dir($dslDir)) { |
|
| 137 | return array(); |
|
| 138 | } |
|
| 139 | ||
| 140 | $out = array(); |
|
| 141 | foreach(scandir($dslDir) as $fileName) { |
|
| 142 | $filePath = $dslDir . '/' . $fileName; |
|
| 143 | if (is_file($filePath)) { |
|
| 144 | $out[] = array($filePath); |
|
| 145 | } |
|
| 146 | } |
|
| 147 | return $out; |
|
| 148 | } |
|
| 149 | ||
| 150 | public function badDSLProvider() |
|
| 151 | { |
|
| @@ 150-165 (lines=16) @@ | ||
| 147 | return $out; |
|
| 148 | } |
|
| 149 | ||
| 150 | public function badDSLProvider() |
|
| 151 | { |
|
| 152 | $dslDir = $this->dslDir.'/bad/execution'; |
|
| 153 | if(!is_dir($dslDir)) { |
|
| 154 | return array(); |
|
| 155 | } |
|
| 156 | ||
| 157 | $out = array(); |
|
| 158 | foreach(scandir($dslDir) as $fileName) { |
|
| 159 | $filePath = $dslDir . '/' . $fileName; |
|
| 160 | if (is_file($filePath)) { |
|
| 161 | $out[] = array($filePath); |
|
| 162 | } |
|
| 163 | } |
|
| 164 | return $out; |
|
| 165 | } |
|
| 166 | } |
|
| 167 | ||