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
When creating a mock object the resulting object is the union of a MockObject and the targeted object therefore the PHPDoc would be like this MockObject&TargetedObject not MockObject|TargetedObject
Stricter assertions
Prefer assertSame to assertEquals for strict comparisons.
Mock expectations
expects($this->once()) could use $this->exactly(1) for clarity.
MockObject PHPDoc
MockObject&TargetedObjectnotMockObject|TargetedObjectStricter assertions
assertSametoassertEqualsfor strict comparisons.Mock expectations
expects($this->once())could use$this->exactly(1)for clarity.