public function testAbandoned($abandoned, $expected)
{
$webBuilder = new WebBuilder(new NullOutput(), vfsStream::url('build'), [], false);
$webBuilder->setRootPackage($this->rootPackage);
$this->package->setAbandoned($abandoned);
$webBuilder->dump([$this->package]);
$html = $this->root->getChild('build/index.html')->getContent();
$this->assertRegExp('/Package is abandoned, you should avoid using it/', $html);
$this->assertRegExp($expected, $html);
}