public function hasSize($size, $failMessage = null)
{
if (sizeof($this->valueIsSet()->value) == $size) {
$this->pass();
} else {
$this->fail($failMessage ?: $this->_('%s has size %d, expected size %d', $this, sizeof($this->valueIsSet()->value), $size));
}
return $this;
}