/**
* @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();
}