<?php it('fixes the code', function () { [$statusCode, $output] = run('default', [ 'path' => base_path('tests/Fixtures/fixers/braces.php'), '--preset' => 'laravel', ]); expect($statusCode)->toBe(1) ->and($output) ->toContain(' ⨯') ->toContain( <<<'EOF' -$a = function () -{ +$a = function () { // .. }; EOF, )->toContain( <<<'EOF' -new class { +new class +{ // .. }; EOF, )->toContain( <<<'EOF' -new class extends stdClass { +new class extends stdClass +{ // .. }; EOF, ); });
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
BinaryOperatorSpacesFixerTest.php | File | 674 B | 0644 |
|
BracesFixerTest.php | File | 679 B | 0644 |
|
LaravelPhpdocAlignmentFixerTest.php | File | 497 B | 0644 |
|
LaravelPhpdocOrderFixerTest.php | File | 488 B | 0644 |
|
LaravelPhpdocSeparationFixerTest.php | File | 478 B | 0644 |
|