protected function matchArrayIndex($actual)
    {
        if (isset($actual[$this->getKey()])) {
            $this->assertion->setActual($actual[$this->getKey()]);

            return $this->isExpected($actual[$this->getKey()]);
        }

        return false;
    }
protected function matchArrayIndex($actual)
    {
        if (isset($actual[$this->getKey()])) {
            $this->assertion->setActual($actual[$this->getKey()]);

            return $this->isExpected($actual[$this->getKey()]);
        }

        return false;
    }
protected function matchArrayIndex ( $ actual ) { if ( isset ( $ actual [ $ this -> getKey ( ) ] ) ) { $ this -> assertion -> setActual ( $ actual [ $ this -> getKey ( ) ] ) ; return $ this -> isExpected ( $ actual [ $ this -> getKey ( ) ] ) ; } return false ; }
Match that an array index exists, and matches
the expected value if set.

@param $actual
@return bool
Match that an array index exists and matches the expected value if set .