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

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

public getDescription ( ) : string
Результат string
    public function getDescription()
    {
        return 'An introduction to Composer dependency management';
    }

Usage Example

 public function testDependencyHeavenExercise()
 {
     $e = new DependencyHeaven($this->faker);
     $this->assertEquals('Dependency Heaven', $e->getName());
     $this->assertEquals('An introduction to Composer dependency management', $e->getDescription());
     $this->assertEquals(ExerciseType::CGI, $e->getType());
     $this->assertInstanceOf(SolutionInterface::class, $e->getSolution());
     $this->assertFileExists(realpath($e->getSolution()->getEntryPoint()));
     $this->assertFileExists(realpath($e->getProblem()));
     $this->assertNull($e->tearDown());
 }