Lines Matching refs:object

6 Prophecy is a highly opinionated yet very powerful and flexible PHP object mocking
77 those object prophecies can't create themselves - there should be a Prophet:
89 The result of the `prophesize()` method call is a new object of class `ObjectProphecy`. Yes,
90 that's your specific object prophecy, which describes how your object would behave
91 in the near future. But first, you need to specify which object you're talking about,
100 object prophecy that our object should extend specific class, the second one says that
106 Ok, now we have our object prophecy. What can we do with it? First of all, we can get
107 our object *dummy* by revealing its prophecy:
113 The `$dummy` variable now holds a special dummy object. Dummy objects are objects that extend
118 a token object to satisfy a method typehint.
120 You need to understand one thing - a dummy is not a prophecy. Your object prophecy is still
122 should work with it. `$dummy` is a dummy - a simple php object that tries to fulfil your
131 A stub is an object double, which doesn't have any expectations about the object behavior,
140 Oh wow. We've just made an arbitrary call on the object prophecy? Yes, we did. And this
141 call returned us a new object instance of class `MethodProphecy`. Yep, that's a specific
276 We've just described how our stub object should behave, even though the original object could have
323 stubs we describe every object conversation instead of just agreeing with `null` returns
324 (object being *dummy*). As a matter of fact, after you define your first promise
326 the `UnexpectedCallException` for any call you didn't describe with object prophecy before
356 check happen? Whenever you call `checkPredictions()` on the main Prophet object: