Skip to content

Wrong formatting of Pest's get method #354

@toddy15

Description

@toddy15

Pint Version

1.21.0

PHP Version

8.4.4

Description

I've noticed that pint creates wrongly formatted output for the Pest test method get. I suspect that this might be related to #352.

Below is a diff of a pint run of one of my tests:

 test('a guest can view the homepage', function () {
-    get('/')
-        ->assertOk()
-        ->assertViewIs('homepage');
-});
+get('/')
+->assertOk()
+->assertViewIs('homepage');
+    });

Steps To Reproduce

Create a Pest test and format it with pint.

Expected:

test('a guest can view the homepage', function () {
    get('/')
        ->assertOk()
        ->assertViewIs('homepage');
});

Actual output:

test('a guest can view the homepage', function () {
get('/')
->assertOk()
->assertViewIs('homepage');
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions