Equality is checked with PHP's == operator, the operator is explained in
detail at {@url http://www.php.net/manual/en/types.comparisons.php}.
Two values are equal if they have the same value disregarding type.
The expected value is passed in the constructor.