Quickly viewing test file structure

Another reason I like patterns

Joel Clermont
Joel Clermont

In PHPStorm, when I'm surveying a file, especially a big test class with lots of test methods, I used to collapse all functions to make it easier to navigate.

But recently, I was pairing with Aaron, and he showed me the Structure view.

Viewing file structure in PHPStorm

This is way easier for scanning and jumping around a file, and it's only a keystroke away (Cmd-7 on macOS).

It's also not unique to PHPStorm. I'm sure a similar feature exists if you prefer a different editor.

Here to help,


P.S. Wish your Laravel app had good test coverage like this? We can help with that!

Toss a coin in the jar if you found this helpful.
Want a tip like this in your inbox every weekday? Sign up below 👇🏼

Level up your Laravel skills!

Each 2-minute email has real-world advice you can use.