protected function matchInclusion($actual)
    {
        foreach ($this->expected as $key) {
            if (!array_key_exists($key, $actual)) {
                return false;
            }
        }

        return true;
    }
protected function matchInclusion($actual)
    {
        foreach ($this->expected as $key) {
            if (!array_key_exists($key, $actual)) {
                return false;
            }
        }

        return true;
    }
protected function matchInclusion ( $ actual ) { foreach ( $ this -> expected as $ key ) { if ( ! array_key_exists ( $ key , $ actual ) ) { return false ; } } return true ; }
Used when the 'contain' flag exists on the Assertion. Checks
if the expected keys are included in the object or array.

@param  array $actual
@return true
Used when the contain flag exists on the Assertion . Checks if the expected keys are included in the object or array .