Changeset 20974
- Timestamp:
- 08/09/09 20:34:05 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/lime/branches/2.0-experimental/lib/output/LimeOutputPipe.php
r20968 r20974 35 35 if (!empty($this->buffer)) 36 36 { 37 throw new RuntimeException(sprintf('Could not unserialize "%s"', $this->buffer));37 $this->output->warning("Could not parse test output. Make sure you don't echo any additional data.", $file, 1); 38 38 } 39 39 } tools/lime/branches/2.0-experimental/test/unit/output/LimeOutputPipeTest.php
r20968 r20974 167 167 168 168 169 // @Test: If the output cannot be unserialized, an e xception is thrown169 // @Test: If the output cannot be unserialized, an error is reported 170 170 171 171 // fixtures 172 172 file_put_contents($file, '<?php echo "Some Error occurred";'); 173 // test 174 $t->expect('RuntimeException'); 175 $connector->connect($file); 173 $output->warning("Could not parse test output. Make sure you don't echo any additional data.", $file, 1); 174 $output->replay(); 175 // test 176 $connector->connect($file); 177 // assertions 178 $output->verify(); 176 179 177 180