public function testSupports()
 {
     $exercise1 = $this->prophesize(ExerciseInterface::class);
     $exercise2 = $this->prophesize(ExerciseInterface::class);
     $exercise3 = $this->prophesize(ExerciseInterface::class);
     $exercise1->getType()->willReturn(ExerciseType::CLI());
     $exercise2->getType()->willReturn(ExerciseType::CGI());
     $exercise3->getType()->willReturn(ExerciseType::CUSTOM());
     $this->assertFalse($this->factory->supports($exercise1->reveal()));
     $this->assertFalse($this->factory->supports($exercise2->reveal()));
     $this->assertTrue($this->factory->supports($exercise3->reveal()));
 }
 /**
  * Return the type of exercise. This is an ENUM. See `PhpSchool\PhpWorkshop\Exercise\ExerciseType`.
  *
  * @return ExerciseType
  */
 public function getType()
 {
     return ExerciseType::CUSTOM();
 }