Lines Matching refs:prediction
33 private $prediction; variable in Prophecy\\Prophecy\\MethodProphecy
224 public function should($prediction) argument
226 if (is_callable($prediction)) {
227 $prediction = new Prediction\CallbackPrediction($prediction);
230 if (!$prediction instanceof Prediction\PredictionInterface) {
233 gettype($prediction)
238 $this->prediction = $prediction;
302 public function shouldHave($prediction) argument
304 if (is_callable($prediction)) {
305 $prediction = new Prediction\CallbackPrediction($prediction);
308 if (!$prediction instanceof Prediction\PredictionInterface) {
311 gettype($prediction)
325 $prediction->check($calls, $this->getObjectProphecy(), $this);
326 $this->checkedPredictions[] = $prediction;
328 $this->checkedPredictions[] = $prediction;
404 if (null === $this->prediction) {
408 $this->shouldHave($this->prediction);
428 return $this->prediction;