@@ -220,21 +220,39 @@ public function tokenizeParams()
220220 */
221221 public function testStdinPipe ($ cmd , $ result )
222222 {
223- exec ($ cmd , $ out , $ ret );
223+ exec ($ cmd , $ out , $ ret );
224224 $ this ->assertSame ($ result , $ ret );
225225 }
226226
227227 public function stdinParams ()
228228 {
229- $ binPath = PHP_BINARY .' ' . dirname (__DIR__ ,2 ) . '/bin/ ' ;
229+ $ binPath = PHP_BINARY . ' ' . dirname (__DIR__ , 2 ) . '/bin/ ' ;
230230
231231 return [
232- ['echo "SELECT 1" | ' . $ binPath .'highlight-query ' , 0 ],
233- ['echo "invalid query" | ' . $ binPath .'highlight-query ' , 0 ],
234- ['echo "SELECT 1" | ' . $ binPath .'lint-query ' , 0 ],
235- ['echo "invalid query" | ' . $ binPath .'lint-query ' , 10 ],
236- ['echo "SELECT 1" | ' . $ binPath .'tokenize-query ' , 0 ],
237- ['echo "invalid query" | ' . $ binPath .'tokenize-query ' , 0 ],
232+ [
233+ 'echo "SELECT 1" | ' . $ binPath . 'highlight-query ' ,
234+ 0 ,
235+ ],
236+ [
237+ 'echo "invalid query" | ' . $ binPath . 'highlight-query ' ,
238+ 0 ,
239+ ],
240+ [
241+ 'echo "SELECT 1" | ' . $ binPath . 'lint-query ' ,
242+ 0 ,
243+ ],
244+ [
245+ 'echo "invalid query" | ' . $ binPath . 'lint-query ' ,
246+ 10 ,
247+ ],
248+ [
249+ 'echo "SELECT 1" | ' . $ binPath . 'tokenize-query ' ,
250+ 0 ,
251+ ],
252+ [
253+ 'echo "invalid query" | ' . $ binPath . 'tokenize-query ' ,
254+ 0 ,
255+ ],
238256 ];
239257 }
240258}
0 commit comments