public function testUpdateComposerFailure()
{
$repoEntity = new Bundle('KnpLabs/KnpMenuBundle');
$repo = $this->getRepo();
$method = new \ReflectionMethod($repo, 'updateComposerFile');
$method->setAccessible(true);
$method->invokeArgs($repo, array('invalid json data', $repoEntity));
$this->assertNull($repoEntity->getComposerName());
}