PhpSchool\LearnYouPhp\Exercise\ArrayWeGo::getType PHP Метод

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

public getType ( ) : PhpSchool\PhpWorkshop\Exercise\ExerciseType
Результат PhpSchool\PhpWorkshop\Exercise\ExerciseType
    public function getType()
    {
        return ExerciseType::CLI();
    }

Usage Example

Пример #1
0
 public function testArrWeGoExercise()
 {
     $e = new ArrayWeGo($this->filesystem, $this->faker);
     $this->assertEquals('Array We Go!', $e->getName());
     $this->assertEquals('Filter an array of file paths and map to SplFile objects', $e->getDescription());
     $this->assertEquals(ExerciseType::CLI, $e->getType());
     $this->assertInstanceOf(SolutionInterface::class, $e->getSolution());
     $this->assertFileExists(realpath($e->getProblem()));
     $this->assertNull($e->tearDown());
 }