public function CallTimesPrediction::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/src/Prophecy/Prediction/CallTimesPrediction.php \Prophecy\Prediction\CallTimesPrediction::__construct()
Initializes prediction.
Parameters
int $times:
StringUtil $util:
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Prediction/ CallTimesPrediction.php, line 39
Class
- CallTimesPrediction
- Prediction interface. Predictions are logical test blocks, tied to `should...` keyword.
Namespace
Prophecy\PredictionCode
public function __construct($times, StringUtil $util = null) {
$this->times = intval($times);
$this->util = $util ?: new StringUtil();
}