public function __construct(Matcher $sizeMatcher) { parent::__construct(self::TYPE_ARRAY, null, $sizeMatcher, 'an array with size', 'array size'); }
public function __construct(Matcher $sizeMatcher) { parent::__construct(self::TYPE_OBJECT, 'Traversable', $sizeMatcher, 'a traversable with size', 'traversable size'); }
public function __construct() { parent::__construct(self::TYPE_ANY, null, equalTo('bar'), 'Thingy with result', 'result'); }
public function __construct(Matcher $toStringMatcher) { parent::__construct(self::TYPE_OBJECT, null, $toStringMatcher, 'an object with toString()', 'toString()'); }