function ArrayCountToken::hasProperCount
Returns true if $argument has expected number of elements
Parameters
array<mixed>|\Countable $argument:
Return value
bool
1 call to ArrayCountToken::hasProperCount()
- ArrayCountToken::scoreArgument in vendor/
phpspec/ prophecy/ src/ Prophecy/ Argument/ Token/ ArrayCountToken.php - Scores 6 when argument has preset number of elements.
File
-
vendor/
phpspec/ prophecy/ src/ Prophecy/ Argument/ Token/ ArrayCountToken.php, line 84
Class
- ArrayCountToken
- Array elements count token.
Namespace
Prophecy\Argument\TokenCode
private function hasProperCount($argument) {
return $this->count === count($argument);
}