spec\GrumPHP\Task\YamlLintSpec::it_does_not_do_anything_if_there_are_no_files PHP Метод

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

public it_does_not_do_anything_if_there_are_no_files ( YamlLinter $linter, GrumPHP\Task\Context\ContextInterface $context )
$linter GrumPHP\Linter\Yaml\YamlLinter
$context GrumPHP\Task\Context\ContextInterface
    function it_does_not_do_anything_if_there_are_no_files(YamlLinter $linter, ContextInterface $context)
    {
        $linter->isInstalled()->willReturn(true);
        $linter->lint(Argument::any())->shouldNotBeCalled();
        $context->getFiles()->willReturn(new FilesCollection());
        $result = $this->run($context);
        $result->shouldBeAnInstanceOf(TaskResultInterface::class);
        $result->getResultCode()->shouldBe(TaskResult::SKIPPED);
    }