Lines Matching refs:that

72 itself (Prophecy). When you start feeling that, you'll become very fluid with this
75 For example, Prophecy has been named that way because it concentrates on describing the future
90 that's your specific object prophecy, which describes how your object would behave
100 object prophecy that our object should extend specific class, the second one says that
113 The `$dummy` variable now holds a special dummy object. Dummy objects are objects that extend
115 point about dummies is that they do not hold any logic - they just do nothing. Any method
122 should work with it. `$dummy` is a dummy - a simple php object that tries to fulfil your
128 awesome if we don't care about our _doubles_ (objects that reflect originals)
141 call returned us a new object instance of class `MethodProphecy`. Yep, that's a specific
147 Promises are logical blocks, that represent your fictional methods in prophecy terms
149 As a matter of fact, the call that we made earlier (`willReturn('value')`) is a simple
157 argument - `'123'` to always return `'value'`. But that's only for this
165 Keep in mind, that you can always add even more promises by implementing
184 you do that by predicting how many times your method will be called. In Prophecy,
185 you'll use promises for that:
211 The previous example is awesome (at least I hope it is for you), but that's not
225 Those argument tokens are simple PHP classes, that implement
228 shortcut class `Prophecy\Argument`, which you can use to create tokens like that:
239 - `IdenticalValueToken` or `Argument::is($value)` - checks that the argument is identical to a spec…
240 - `ExactValueToken` or `Argument::exact($value)` - checks that the argument matches a specific value
241 - `TypeToken` or `Argument::type($typeOrClass)` - checks that the argument matches a specific type …
243 - `ObjectStateToken` or `Argument::which($method, $value)` - checks that the argument method returns
245 - `CallbackToken` or `Argument::that(callback)` - checks that the argument matches a custom callback
248 - `StringContainsToken` or `Argument::containingString($value)` - checks that the argument contains…
308 promise that has the highest score. In this case, `Argument::type()` in case of success
322 As you might see, the only difference between how we get dummies and stubs is that with
333 are called mocks and in Prophecy they look almost exactly the same as stubs, except that
345 code. After that, Prophecy can use this collected information to check if it matches defined
354 It checks if your method of interest (that matches both the method name and the arguments wildcard)
367 - `CallPrediction` or `shouldBeCalled()` - checks that the method has been called 1 or more times
368 - `NoCallsPrediction` or `shouldNotBeCalled()` - checks that the method has not been called
369 - `CallTimesPrediction` or `shouldBeCalledTimes($count)` - checks that the method has been called