function testPiping() { $res = cmd::wc(cmd::echo_args("foo"), "-c"); $this->assertEquals("4", trim((string) $res)); }