/**
  * Check & validate the quantity parameter
  * @param  Validate $validate Validate instance
  * @param  Task $task Download task
  * @param  string $option Option value
  */
 public function quantityParameter(Validate $validate, Task $task, $option)
 {
     $quantity = $validate->quantity($option);
     $task->setQuantity($quantity);
     $this->verboseOutput('Download the last ' . $quantity . ' photos.' . PHP_EOL);
 }
 /**
  * Test Simondubois\UnsplashDownloader\Task::getQuantity()
  *     & Simondubois\UnsplashDownloader\Task::setQuantity()
  */
 public function testQuantity()
 {
     // Instantiate task & custom value
     $task = new Task();
     $quantity = 10;
     // Assert default value
     $this->assertNull($task->getQuantity());
     // Assert custom value
     $task->setQuantity($quantity);
     $this->assertEquals($quantity, $task->getQuantity());
 }