Page MenuHomeWickedGov Phorge

IsEqual.php
No OneTemporary

Size
835 B
Referenced Files
None
Subscribers
None

IsEqual.php

<?php
namespace Hamcrest\Core;
/*
Copyright (c) 2009 hamcrest.org
*/
use Hamcrest\BaseMatcher;
use Hamcrest\Description;
/**
* Is the value equal to another value, as tested by the use of the "=="
* comparison operator?
*/
class IsEqual extends BaseMatcher
{
private $_item;
public function __construct($item)
{
$this->_item = $item;
}
public function matches($arg)
{
return (($arg == $this->_item) && ($this->_item == $arg));
}
public function describeTo(Description $description)
{
$description->appendValue($this->_item);
}
/**
* Is the value equal to another value, as tested by the use of the "=="
* comparison operator?
*
* @factory
*/
public static function equalTo($item)
{
return new self($item);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, May 16, 22:37 (2 h, 6 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0f/1a/2f2dd8a02f60ead1019cdc72bba7
Default Alt Text
IsEqual.php (835 B)

Event Timeline