You are here

public static function Argument::size in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/src/Prophecy/Argument.php \Prophecy\Argument::size()

Checks that argument array or countable object has exact number of elements.

Parameters

integer $value array elements count:

Return value

Token\ArrayCountToken

File

vendor/phpspec/prophecy/src/Prophecy/Argument.php, line 111

Class

Argument
Argument tokens shortcuts.

Namespace

Prophecy

Code

public static function size($value) {
  return new Token\ArrayCountToken($value);
}