Composer\Test\Satis\WebBuilderDumpTest::testAbandoned PHP Метод

testAbandoned() публичный Метод

public testAbandoned ( boolean | string $abandoned, string $expected )
$abandoned boolean | string
$expected string
    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);
    }