-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
Upgrade to PHPUnit 10 #393
Conversation
@@ -20,7 +20,7 @@ | |||
use function next; | |||
use function reset; | |||
|
|||
abstract class BaseArrayCollectionTest extends TestCase | |||
abstract class BaseArrayCollectionTestCase extends TestCase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
abstract class BaseArrayCollectionTestCase extends TestCase | |
abstract class ArrayCollectionTestCase extends TestCase |
The Base
prefix feels redundant now.
['type' => CompositeExpression::TYPE_NOT, 'expressions' => [$this->createMock(Expression::class), $this->createMock(Expression::class)]], | ||
[ | ||
'type' => CompositeExpression::TYPE_NOT, | ||
'expressions' => [ | ||
new class () implements Expression { | ||
public function visit(ExpressionVisitor $visitor) | ||
{ | ||
} | ||
}, | ||
new class () implements Expression { | ||
public function visit(ExpressionVisitor $visitor) | ||
{ | ||
} | ||
}, | ||
], | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use self::createStub()
to replace $this->createMock()
in a static method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL createMock
is not statick, but createStub
is 💡
No description provided.