public function testWrite()
 {
     $input = new PipedInputStream();
     $output = new PipedOutputStream($input);
     $output->write('hello');
     $this->assertEquals(str_split('hello', 1), array_values((array) $input->buffer));
 }