Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / console / Tests / Input / InputTest.php
index 42abd82eac11cd1daf96a8bc76c222b54022f5cc..7a2c64eb647f587e14244a8db19d1b7129fc34e5 100644 (file)
@@ -130,4 +130,12 @@ class InputTest extends TestCase
         $input->setInteractive(false);
         $this->assertFalse($input->isInteractive(), '->setInteractive() changes the interactive flag');
     }
+
+    public function testSetGetStream()
+    {
+        $input = new ArrayInput(array());
+        $stream = fopen('php://memory', 'r+', false);
+        $input->setStream($stream);
+        $this->assertSame($stream, $input->getStream());
+    }
 }