* Dariusz Rumiński * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace PhpCsFixer\Tests\Console\Report\FixReport; use PhpCsFixer\Console\Application; use PhpCsFixer\Console\Report\FixReport\JsonReporter; use PhpCsFixer\Console\Report\FixReport\ReporterInterface; use PhpCsFixer\Tests\Test\Assert\AssertJsonSchemaTrait; /** * @author Boris Gorbylev * @author Dariusz Rumiński * * @internal * * @covers \PhpCsFixer\Console\Report\FixReport\JsonReporter */ final class JsonReporterTest extends AbstractReporterTestCase { use AssertJsonSchemaTrait; protected static function createSimpleReport(): string { $about = Application::getAbout(); $diff = <<<'DIFF' --- Original\n+++ New\n@@ -2,7 +2,7 @@\n\n class Foo\n {\n- public function bar($foo = 1, $bar)\n+ public function bar($foo, $bar)\n {\n }\n } DIFF; return <<