|
From: Nicolas T. <nic...@gm...> - 2010-04-22 08:12:43
|
On Thu, Apr 22, 2010 at 9:52 AM, <min...@fr...> wrote: > I'm trying to test a variable like this : > $a = 0; > assertFalse($a); > > The problem is that $a is not false, but an integer equal to 0. > Could the assert method use === instead of a simple == ? > > Something like : return $compare === false; > Instead of : return ! (boolean)$compare; I disagree since 0 is equal to false (as well as '', null, ...) in PHP Maybe you should use assertIdentical($a, false) instead ? Yours, Nicolas Terray |