You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, one of my colleagues uses Phpstorm as IDE and every time he opens a test he gets a red line under any call to $this->assertEquals, $this->assertThat, because those methods are static and it should be self::assertEquals.
However in the entire phpunit codebase and in all documentation it's being used as a non static method. So why are these methods static in the first place? My colleague wants to change all calls to self::assertEquals which I find a waste of time to put effort into.
The text was updated successfully, but these errors were encountered:
Hi, one of my colleagues uses Phpstorm as IDE and every time he opens a test he gets a red line under any call to $this->assertEquals, $this->assertThat, because those methods are static and it should be self::assertEquals.
However in the entire phpunit codebase and in all documentation it's being used as a non static method. So why are these methods static in the first place? My colleague wants to change all calls to self::assertEquals which I find a waste of time to put effort into.
The text was updated successfully, but these errors were encountered: