kahlan\matcher\ToBeA::expected PHP Method

expected() public static method

Normalises the expected value.
public static expected ( mixed $expected ) : mixed
$expected mixed The expected value to be normalized.
return mixed The normalized value.
    public static function expected($expected)
    {
        if ($expected === 'bool') {
            $expected = 'boolean';
        }
        if ($expected === 'int') {
            $expected = 'integer';
        }
        if ($expected === 'float') {
            $expected = 'double';
        }
        return strtolower($expected);
    }