PHPUnit_Framework_Constraint_IsEmpty::customFailureDescription PHP Method

customFailureDescription() protected method

protected customFailureDescription ( mixed $other, string $description, boolean $not )
$other mixed
$description string
$not boolean
    protected function customFailureDescription($other, $description, $not)
    {
        $type = gettype($other);
        if ($type[0] == 'a' || $type[0] == 'o') {
            $type = 'an ' . $type;
        } else {
            $type = 'a ' . $type;
        }
        return sprintf('Failed asserting that %s is empty.', $type);
    }
PHPUnit_Framework_Constraint_IsEmpty