diff options
author | Urban Müller | 2023-07-18 18:23:58 +0200 |
---|---|---|
committer | Urban Müller | 2023-07-18 18:23:58 +0200 |
commit | 8892d20c4cd73ed30dc47bbc5cc182128100714e (patch) | |
tree | 53b8453948297ab7b3dfdca60ece6bcbb8c4d5d2 | |
parent | 838ce3a7a163502fb002f26645e70b3ff5d7294f (diff) | |
download | itools-8892d20c4cd73ed30dc47bbc5cc182128100714e.tar.gz itools-8892d20c4cd73ed30dc47bbc5cc182128100714e.tar.bz2 itools-8892d20c4cd73ed30dc47bbc5cc182128100714e.zip |
test existing it_pipe frontend behaviour
-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"}]'); |