expectation.php
protected function canonicalType($type)
    {
        $type = strtolower($type);
        $map  = array('boolean' => 'bool');
        if (isset($map[$type])) {
            $type = $map[$type];
        }

        return $type;
    }
protected function canonicalType($type)
    {
        $type = strtolower($type);
        $map  = array('boolean' => 'bool');
        if (isset($map[$type])) {
            $type = $map[$type];
        }

        return $type;
    }
forces type name into a is_*() match.

@param string $type        User type.

@return string             Simpler type.