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

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

public getDescription ( ) : string
Результат string
    public function getDescription()
    {
        return 'Read an SQL databases contents';
    }

Usage Example

Пример #1
0
 public function testDatabaseExercise()
 {
     $e = new DatabaseRead($this->faker);
     $this->assertEquals('Database Read', $e->getName());
     $this->assertEquals('Read an SQL databases contents', $e->getDescription());
     $this->assertEquals(ExerciseType::CLI, $e->getType());
     $this->assertInstanceOf(SolutionInterface::class, $e->getSolution());
     $this->assertFileExists(realpath($e->getProblem()));
     $this->assertNull($e->tearDown());
 }