File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/mockery/mockery/library/Mockery/Matcher
Upload
[..]
AndAnyOtherArgs.php (785 B)
Edit
Rename
Del
Any.php (764 B)
Edit
Rename
Del
AnyArgs.php (648 B)
Edit
Rename
Del
AnyOf.php (889 B)
Edit
Rename
Del
ArgumentListMatcher.php (357 B)
Edit
Rename
Del
Closure.php (811 B)
Edit
Rename
Del
Contains.php (1.34 KB)
Edit
Rename
Del
Ducktype.php (1.09 KB)
Edit
Rename
Del
HasValue.php (1 KB)
Edit
Rename
Del
IsEqual.php (795 B)
Edit
Rename
Del
IsSame.php (794 B)
Edit
Rename
Del
MustBe.php (983 B)
Edit
Rename
Del
NoArgs.php (683 B)
Edit
Rename
Del
Not.php (848 B)
Edit
Rename
Del
NotAnyOf.php (986 B)
Edit
Rename
Del
Type.php (1.35 KB)
Edit
Rename
Del
Edit: HasValue.php
<?php /** * Mockery (https://docs.mockery.io/) * * @copyright https://github.com/mockery/mockery/blob/HEAD/COPYRIGHT.md * @license https://github.com/mockery/mockery/blob/HEAD/LICENSE BSD 3-Clause License * @link https://github.com/mockery/mockery for the canonical source repository */ namespace Mockery\Matcher; use ArrayAccess; use function in_array; use function is_array; class HasValue extends MatcherAbstract { /** * Return a string representation of this Matcher * * @return string */ public function __toString() { return '<HasValue[' . (string) $this->_expected . ']>'; } /** * Check if the actual value matches the expected. * * @template TMixed * * @param TMixed $actual * * @return bool */ public function match(&$actual) { if (! is_array($actual) && ! $actual instanceof ArrayAccess) { return false; } return in_array($this->_expected, (array) $actual, true); } }
Simpan