public testGetStreamRaisesExceptionWhenErrorStatusPresent ( $status ) |
public function testGetStreamRaisesExceptionWhenErrorStatusPresent($status)
{
$uploadedFile = new UploadedFile('not ok', 0, $status);
$this->setExpectedException('RuntimeException', 'upload error');
$uploadedFile->getStream();
}