/var/www/vhosts/ihelp.ro/httpdocs/vendor/sebastian/comparator/src
NameSizeModeActions
exceptions/-0755rm
ArrayComparator.php45490644editdlrm
Comparator.php16630644editdlrm
ComparisonFailure.php30370644editdlrm
DateTimeComparator.php31890644editdlrm
DOMNodeComparator.php29620644editdlrm
DoubleComparator.php17810644editdlrm
ExceptionComparator.php12860644editdlrm
Factory.php39910644editdlrm
MockObjectComparator.php12240644editdlrm
NumericComparator.php25820644editdlrm
ObjectComparator.php37540644editdlrm
ResourceComparator.php16420644editdlrm
ScalarComparator.php34560644editdlrm
SplObjectStorageComparator.php23200644editdlrm
TypeComparator.php18420644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/sebastian/comparator/src/ResourceComparator.php (1642B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\Comparator; use function is_resource; /** * Compares resources for equality. */ class ResourceComparator extends Comparator { /** * Returns whether the comparator can compare two values. * * @param mixed $expected The first value to compare * @param mixed $actual The second value to compare * * @return bool */ public function accepts($expected, $actual) { return is_resource($expected) && is_resource($actual); } /** * Asserts that two values are equal. * * @param mixed $expected First value to compare * @param mixed $actual Second value to compare * @param float $delta Allowed numerical distance between two values to consider them equal * @param bool $canonicalize Arrays are sorted before comparison when set to true * @param bool $ignoreCase Case is ignored when set to true * * @throws ComparisonFailure */ public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false)/*: void*/ { if ($actual != $expected) { throw new ComparisonFailure( $expected, $actual, $this->exporter->export($expected), $this->exporter->export($actual) ); } } }