for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Peridot\Leo\Matcher;
/**
* A Match is the result of MatcherInterface::match($actual).
*
* @package Peridot\Leo\Matcher
*/
class Match
{
* @var bool
protected $match;
* @var mixed
protected $expected;
protected $actual;
protected $isNegated;
* @param bool $isMatch
* @param mixed $expected
* @param mixed $actual
* @param bool $isNegated
public function __construct($isMatch, $expected, $actual, $isNegated)
$this->match = $isMatch;
$this->expected = $expected;
$this->actual = $actual;
$this->isNegated = $isNegated;
}
* Return whether or not a match succeeded.
* @return bool
public function isMatch()
return $this->match;
* Get the actual value used in the match.
* @return mixed
public function getActual()
return $this->actual;
* Get the expected value used in the match.
public function getExpected()
return $this->expected;
* Returns whether or not the match was negated.
public function isNegated()
return $this->isNegated;
* Set the actual value used in the match.
* @return $this
public function setActual($actual)
return $this;
* Set the expected value used in the match.
public function setExpected($expected)