protected function doMatch($actual)
    {
        $actual = $this->getArrayValue($actual);
        if ($this->assertion->flag('contain')) {
            $this->verb = 'contain';

            return $this->matchInclusion($actual);
        }
        $keys = array_keys($actual);

        return $keys == $this->expected;
    }