Example #1
0
 /**
  * @expectedException \Upload\Exception
  */
 public function testWillNotUploadIfInvalid()
 {
     $file = new \Upload\File('bad', $this->storage);
     $this->assertFalse($file->isValid());
     $file->upload();
     // <-- Will throw exception
 }