You are here

protected function LintCommandTest::createCommandTester in Lockr 7.3

Return value

CommandTester

3 calls to LintCommandTest::createCommandTester()
LintCommandTest::testLintCorrectFile in vendor/symfony/yaml/Tests/Command/LintCommandTest.php
LintCommandTest::testLintFileNotReadable in vendor/symfony/yaml/Tests/Command/LintCommandTest.php
@expectedException \RuntimeException
LintCommandTest::testLintIncorrectFile in vendor/symfony/yaml/Tests/Command/LintCommandTest.php

File

vendor/symfony/yaml/Tests/Command/LintCommandTest.php, line 109

Class

LintCommandTest
Tests the YamlLintCommand.

Namespace

Symfony\Component\Yaml\Tests\Command

Code

protected function createCommandTester() {
  $application = new Application();
  $application
    ->add(new LintCommand());
  $command = $application
    ->find('lint:yaml');
  return new CommandTester($command);
}