mageekguy\atoum\asserters\phpArray::isEqualTo PHP Метод

isEqualTo() публичный Метод

public isEqualTo ( $value, $failMessage = null )
    public function isEqualTo($value, $failMessage = null)
    {
        return $this->callAssertion(__FUNCTION__, array($value, $failMessage));
    }

Usage Example

Пример #1
0
 protected function matches($actual)
 {
     if ($this->analyzer->isArray($actual) === false) {
         throw new \PHPUnit_Framework_Exception('Actual value of ' . __CLASS__ . ' must be an array');
     }
     $patched = array_replace_recursive($actual, $this->expected);
     $asserter = new asserters\phpArray(null, $this->analyzer);
     $asserter->setWith($actual);
     if ($this->strict) {
         $asserter->isIdenticalTo($patched);
     } else {
         $asserter->isEqualTo($patched);
     }
 }
All Usage Examples Of mageekguy\atoum\asserters\phpArray::isEqualTo