Closed
Description
Just creating this as a place holder for discussions pertaining to a 1.0, will formalise something eventually.
Things I've been thinking about:
- Spies
- Rough implementation in Basic/naive spy implementation #283
- API needs discussing and finalising
- Docs
- Structured Documentation #90
- @GrahamCampbell and @wouterj have made some progress, looking to start on migrating to sphinx shortly
- API
- Whole public API needs examining and finalising
- Stubs vs Mocks behaviours
- IMO stubs should always be
byDefault
, i.e. you can override them - I would love to break the API completely, so that
shouldReceive
defaults toonce
, rather thanzeroOrMoreTimes
, along with astub
method, as I think the language is in conflict, but I think that's probably too much of a BC break.
- IMO stubs should always be
- Issues
- We need to fix and/or close issues as necessary
- User Feedback
- Need to speak to user base to see what we're missing
- API Verifying mocks
- Above and beyond
allowMockingNonExistentMethods
- Checks against method signature (for primitives and arg count etc)
- Checks against docblock return type
- Could be (configurably) silent when class/interface doesn't exist
- Could be (configurably) silent when method doesn't exist
- Above and beyond
Newly added:
- PHP version support
- PHP 5.3.x is EOL
- See After commit a32c6ad986, having issue with loading multiple mocks of same class #297
- Coding Standards
- Review state of matchers Review state of argument matchers #129
- I think strictness with regards to objects
with($obj)
andwith(mustBe($obj))
are backwards compared to primitives.
- I think strictness with regards to objects