public getType ( ) : PhpSchool\PhpWorkshop\Exercise\ExerciseType | ||
return | PhpSchool\PhpWorkshop\Exercise\ExerciseType |
public function testFilteredLsExercise() { $e = new FilteredLs($this->filesystem); $this->assertEquals('Filtered LS', $e->getName()); $this->assertEquals('Read files in a folder and filter by a given extension', $e->getDescription()); $this->assertEquals(ExerciseType::CLI, $e->getType()); $this->assertInstanceOf(SolutionInterface::class, $e->getSolution()); $this->assertFileExists(realpath($e->getProblem())); $this->assertNull($e->tearDown()); }