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