-
Notifications
You must be signed in to change notification settings - Fork 13
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
phpunit improvements #60
Comments
Do not replace |
sigh, awesome. |
like what? |
static::at(0), static::returnValue(...) |
same, use $this here |
The PHPUnit maintainer is simply wrong on this issue. I have thoroughly analyzed PHPUnit's code, and unless we are going to declare willfully disregarding the static method calls are OK, then such an important code quality tool as PHPUnit should have code written for it using Or, PHPUnit needs to have a third class that does something like // Expose static assert methods for people who need them.
class Assert
{
public static function assertEquals($expected, $actual, $memo='')
{
return (new AssertLogic())->assertEquals($expected, $actual, $memo);
}
} Then extend |
fix these warning
PHPUnit_Framework_TestCase::getMock() is deprecated
$this->assert
should also be replaced withstatic::assert
The text was updated successfully, but these errors were encountered: