@LaravelJutsu
Ludovic Guénet
11 months
Now that everyone is playing around with @pestphp , let's not forget to perform architecture tests for clean code, my friends! 🧼
Tweet media one
6
22
131

Replies

@Amorfx3
Clément
11 months
@LaravelJutsu @pestphp Je commence à voir passer tout ça et pour moi ce genre de test c'est le rôle de l'analyse statique non ?
1
0
0
@LaravelJutsu
Ludovic Guénet
11 months
@Amorfx3 @pestphp Je ne pense pas que PHPStan puisse détecter ce genre de choses? Ce sont des tests d'architecture. 🙂
1
0
1
@AshEvansUK
Ash Evans
11 months
@LaravelJutsu @pestphp how would you handle a GET request to /search?text=search+term&sort=relevant to conform with the first test?
1
0
0
@LaravelJutsu
Ludovic Guénet
11 months
@AshEvansUK @pestphp Passing URL params doesn't mean you can't use FormRequest. 🙂
1
0
0
@martinnewman
marvanni
11 months
@LaravelJutsu @pestphp These architecture tests are really good stuff !
1
0
1
@LaravelJutsu
Ludovic Guénet
11 months
0
0
0
@garyclarketech
Gary Clarke
11 months
@LaravelJutsu @pestphp Is there a way of adding exceptions to the rules?
0
0
1
@hosmelq
Hosmel Quintana
11 months
@LaravelJutsu @pestphp How do you handle the request in an index method, for example?
0
0
0
@don_jon243
Don jon
11 months
@LaravelJutsu @pestphp The second test should be included by default
0
0
1