PhpSchool\LearnYouPhp\Exercise\FilteredLs::getDescription PHP Метод

getDescription() публичный Метод

public getDescription ( ) : string
Результат string
    public function getDescription()
    {
        return 'Read files in a folder and filter by a given extension';
    }

Usage Example

Пример #1
0
 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());
 }