Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why are the assertX methods in PHPUnit_Framework_Assert static #1922

Closed
pjordaan opened this issue Oct 21, 2015 · 1 comment
Closed

Why are the assertX methods in PHPUnit_Framework_Assert static #1922

pjordaan opened this issue Oct 21, 2015 · 1 comment

Comments

@pjordaan
Copy link

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.

@sebastianbergmann
Copy link
Owner

Duplicate of #1914.

See #1914 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants