/**
  * Check & validate the category parameter
  * @param  Validate $validate Validate instance
  * @param  Task $task Download task
  * @param  string $option Option value
  */
 public function categoryParameter(Validate $validate, Task $task, $option)
 {
     $category = $validate->category($option);
     $task->setCategory($category);
     if (is_int($category) && $task->getFeatured() !== true) {
         $this->verboseOutput('Download only photos for category ID ' . $option . '.' . PHP_EOL);
     }
 }
 /**
  * Test Simondubois\UnsplashDownloader\Task::getFeatured()
  *     & Simondubois\UnsplashDownloader\Task::setFeatured()
  */
 public function testFeatured()
 {
     // Instantiate task & custom value
     $task = new Task();
     $featured = true;
     // Assert default value
     $this->assertNull($task->getFeatured());
     // Assert custom value
     $task->setFeatured($featured);
     $this->assertEquals($featured, $task->getFeatured());
 }