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

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

public configure ( PhpSchool\PhpWorkshop\ExerciseDispatcher $dispatcher )
$dispatcher PhpSchool\PhpWorkshop\ExerciseDispatcher
    public function configure(ExerciseDispatcher $dispatcher)
    {
        $dispatcher->requireCheck(FunctionRequirementsCheck::class);
    }

Usage Example

Пример #1
0
 public function testConfigure()
 {
     $dispatcher = $this->getMockBuilder(ExerciseDispatcher::class)->disableOriginalConstructor()->getMock();
     $dispatcher->expects($this->once())->method('requireCheck')->with(FunctionRequirementsCheck::class);
     $e = new ArrayWeGo($this->filesystem, $this->faker);
     $e->configure($dispatcher);
 }