test_example()
doesn't comply with the PSR standard11 *
12 * @return void
13 */
14 public function test_example()15 {
16 $this->assertTrue(true);
17 }
test_example()
doesn't comply with the PSR standard12 *
13 * @return void
14 */
15 public function test_example()16 {
17 $response = $this->get('/');
18
As per PSR-1, class methods must be declared in the camelCase
.
It is recommended that you follow PSR standards while developing PHP applications so the code is consistent and can be easily maintained.
class User
{
// invalid: class methods can't be defined in PascalCase
public function GetUser(): array
{
// method implementation here
}
}
class User
{
public function getUser(): array
{
// method implementation here
}
}