friendica-addons/advancedcontentfilter/vendor/fxp/composer-asset-plugin/Tests/Fixtures/Repository/Vcs/MockVcsDriverSkipParsing.php

45 lines
901 B
PHP

<?php
/*
* This file is part of the Fxp Composer Asset Plugin package.
*
* (c) François Pluchino <francois.pluchino@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Fxp\Composer\AssetPlugin\Tests\Fixtures\Repository\Vcs;
/**
* Mock vcs driver for skip parsing test.
*
* @author François Pluchino <francois.pluchino@gmail.com>
*/
class MockVcsDriverSkipParsing extends MockVcsDriver
{
/**
* {@inheritdoc}
*/
public function getRootIdentifier()
{
return 'ROOT';
}
/**
* {@inheritdoc}
*/
public function hasComposerFile($identifier)
{
return true;
}
/**
* {@inheritdoc}
*/
public function getComposerInformation($identifier)
{
throw new \Exception('MESSAGE with '.$identifier);
}
}