Example #1
0
 public function testGetRequestParamSuccess()
 {
     $requestParam = "https://github.com/jelovac/bitly4laravel";
     $this->model->setRequestParam('longUrl', $requestParam);
     $this->assertEquals($requestParam, $this->model->getRequestParam('longUrl'));
 }
Example #2
0
 /**
  * @expectedException \OutOfRangeException
  */
 public function testGetRequestParamThrowsOutOfRangeException()
 {
     $model = new Model();
     $model->getRequestParam('longUrl');
 }