PhpCsFixer\Linter\ProcessLinter::lintSource PHP Метод

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

public lintSource ( $source )
    public function lintSource($source)
    {
        return new ProcessLintingResult($this->createProcessForSource($source));
    }

Usage Example

 /**
  * @covers PhpCsFixer\Linter\ProcessLinter::lintSource
  *
  * @expectedException \PhpCsFixer\Linter\LintingException
  * @expectedExceptionMessageRegExp /syntax error, unexpected.*T_ECHO/
  */
 public function testLintSourceWithBadCode()
 {
     $linter = new ProcessLinter();
     $linter->lintSource('<?php echo echo;')->check();
 }