Skip to content

PHPUnit enhancements post PHPSpec migration #445

@Prometee

Description

@Prometee

MockObject PHPDoc

  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions