Changeset 32438
- Timestamp:
- 04/04/11 00:00:05 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.0/src/Symfony/Component/Console/Tester/ApplicationTester.php
r32226 r32438 22 22 { 23 23 private $application; 24 private $display;25 24 private $input; 26 25 private $output; … … 47 46 * @param array $input An array of arguments and options 48 47 * @param array $options An array of options 48 * 49 * @return integer The command exit code 49 50 */ 50 51 public function run(array $input, $options = array()) … … 63 64 } 64 65 65 $this->application->run($this->input, $this->output); 66 67 rewind($this->output->getStream()); 68 69 return $this->display = stream_get_contents($this->output->getStream()); 66 return $this->application->run($this->input, $this->output); 70 67 } 71 68 … … 77 74 public function getDisplay() 78 75 { 79 return $this->display; 76 rewind($this->output->getStream()); 77 78 return stream_get_contents($this->output->getStream()); 80 79 } 81 80