composer/composer — pull request #979 by pborreli (2012-08-05 06:00:24+00:00)
Title: [InstallerTest] Fixed return status was always 0

`setCode` overrides the code defined in the execute() method

`execute` method always have to return a numeric statusCode, if not it is replaced by 0.

```
return is_numeric($statusCode) ? $statusCode : 0;
```

In our case run was returning false or true so it was always converted to 0, so this assertion couldn't fail.