`assertEquals()` fails when comparing `'0'` to `false`, but passes when comparing `'1'` to `true`

```
$this->assertEquals( '0', false ); // fails
$this->assertEquals( '1', true );  // passes

```

Can someone explain this?