diff options
-rwxr-xr-x | test/it_pipe.t | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/it_pipe.t b/test/it_pipe.t index a3cebd6..15e51f6 100755 --- a/test/it_pipe.t +++ b/test/it_pipe.t @@ -1,6 +1,12 @@ #!/www/server/bin/php <?php +# it::cat frontend +is(it::cat("test/it_pipe.t")->lines[1], "<?php"); +is(it::cat(['data' => "foo"])->lines(), ["foo"]); +is(it::pipe('echo {x}', ['x' => "foo"])->lines(), ["foo"]); +is(it::pipe(['foo'])->lines(), ["foo"]); + # csv() is(json_encode((new it_pipe(['data' => ["a\tb", "1\t2"]]))->csv()), '[{"a":"1","b":"2"}]'); is(json_encode((new it_pipe(['data' => ["a;b", "1;2"]]))->csv()), '[{"a":"1","b":"2"}]'); |