setInputFile("/tmp/rand.in"); $pipe->setOutputFile("/tmp/rand.out"); $pipe->run(); $out = file_get_contents("/tmp/rand.out"); $this->assertEquals($rand, $out); } }