Lines Matching refs:any
8 enough to be used inside any testing framework out there with minimal effort.
76 behavior of objects with very limited knowledge about them. But as with any other prophecy,
115 point about dummies is that they do not hold any logic - they just do nothing. Any method
116 of the dummy will always return `null` and the dummy will never throw any exceptions.
131 A stub is an object double, which doesn't have any expectations about the object behavior,
156 This promise will cause any call to our double's `read()` method with exactly one
246 - `AnyValueToken` or `Argument::any()` - matches any argument
247 - `AnyValuesToken` or `Argument::cetera()` - matches any arguments to the rest of the signature
275 That's it. Now our `{set,get}Name()` prophecy will work with any string argument provided to it.
301 $user->setName(Argument::any())->will(function () {
309 scores `5` and `Argument::any()` scores `3`. So the type token wins, as does the first
326 the `UnexpectedCallException` for any call you didn't describe with object prophecy before
373 Of course, you can always create your own custom prediction any time by implementing